@@ -3994,8 +3994,6 @@ TypeRepr *ValueDecl::getResultTypeRepr() const {
3994
3994
returnRepr = SD->getElementTypeRepr();
3995
3995
} else if (auto *MD = dyn_cast<MacroDecl>(this)) {
3996
3996
returnRepr = MD->resultType.getTypeRepr();
3997
- } else if (auto *CD = dyn_cast<ConstructorDecl>(this)) {
3998
- returnRepr = CD->getResultTypeRepr();
3999
3997
}
4000
3998
4001
3999
return returnRepr;
@@ -10500,10 +10498,6 @@ void FuncDecl::setResultInterfaceType(Type type) {
10500
10498
std::move(type));
10501
10499
}
10502
10500
10503
- void FuncDecl::setDeserializedResultTypeLoc(TypeLoc ResultTyR) {
10504
- FnRetType = ResultTyR;
10505
- }
10506
-
10507
10501
FuncDecl *FuncDecl::createImpl(ASTContext &Context,
10508
10502
SourceLoc StaticLoc,
10509
10503
StaticSpellingKind StaticSpelling,
@@ -10941,7 +10935,7 @@ ConstructorDecl::ConstructorDecl(DeclName Name, SourceLoc ConstructorLoc,
10941
10935
TypeLoc ThrownType,
10942
10936
ParameterList *BodyParams,
10943
10937
GenericParamList *GenericParams,
10944
- DeclContext *Parent, TypeRepr *ResultTyR )
10938
+ DeclContext *Parent)
10945
10939
: AbstractFunctionDecl(DeclKind::Constructor, Parent, Name, ConstructorLoc,
10946
10940
Async, AsyncLoc, Throws, ThrowsLoc, ThrownType,
10947
10941
/*HasImplicitSelfDecl=*/true,
@@ -10952,7 +10946,6 @@ ConstructorDecl::ConstructorDecl(DeclName Name, SourceLoc ConstructorLoc,
10952
10946
if (BodyParams)
10953
10947
setParameters(BodyParams);
10954
10948
10955
- InitRetType = TypeLoc(ResultTyR);
10956
10949
Bits.ConstructorDecl.HasStubImplementation = 0;
10957
10950
Bits.ConstructorDecl.Failable = Failable;
10958
10951
@@ -10973,16 +10966,11 @@ ConstructorDecl *ConstructorDecl::createImported(
10973
10966
failable, failabilityLoc,
10974
10967
async, asyncLoc,
10975
10968
throws, throwsLoc, TypeLoc::withoutLoc(thrownType),
10976
- bodyParams, genericParams, parent,
10977
- /*LifetimeDependenceTypeRepr*/ nullptr);
10969
+ bodyParams, genericParams, parent);
10978
10970
ctor->setClangNode(clangNode);
10979
10971
return ctor;
10980
10972
}
10981
10973
10982
- void ConstructorDecl::setDeserializedResultTypeLoc(TypeLoc ResultTyR) {
10983
- InitRetType = ResultTyR;
10984
- }
10985
-
10986
10974
bool ConstructorDecl::isObjCZeroParameterWithLongSelector() const {
10987
10975
// The initializer must have a single, non-empty argument name.
10988
10976
if (getName().getArgumentNames().size() != 1 ||
0 commit comments