@@ -3994,8 +3994,6 @@ TypeRepr *ValueDecl::getResultTypeRepr() const {
39943994 returnRepr = SD->getElementTypeRepr ();
39953995 } else if (auto *MD = dyn_cast<MacroDecl>(this )) {
39963996 returnRepr = MD->resultType .getTypeRepr ();
3997- } else if (auto *CD = dyn_cast<ConstructorDecl>(this )) {
3998- returnRepr = CD->getResultTypeRepr ();
39993997 }
40003998
40013999 return returnRepr;
@@ -10500,10 +10498,6 @@ void FuncDecl::setResultInterfaceType(Type type) {
1050010498 std::move (type));
1050110499}
1050210500
10503- void FuncDecl::setDeserializedResultTypeLoc (TypeLoc ResultTyR) {
10504- FnRetType = ResultTyR;
10505- }
10506-
1050710501FuncDecl *FuncDecl::createImpl (ASTContext &Context,
1050810502 SourceLoc StaticLoc,
1050910503 StaticSpellingKind StaticSpelling,
@@ -10941,7 +10935,7 @@ ConstructorDecl::ConstructorDecl(DeclName Name, SourceLoc ConstructorLoc,
1094110935 TypeLoc ThrownType,
1094210936 ParameterList *BodyParams,
1094310937 GenericParamList *GenericParams,
10944- DeclContext *Parent, TypeRepr *ResultTyR )
10938+ DeclContext *Parent)
1094510939 : AbstractFunctionDecl(DeclKind::Constructor, Parent, Name, ConstructorLoc,
1094610940 Async, AsyncLoc, Throws, ThrowsLoc, ThrownType,
1094710941 /* HasImplicitSelfDecl=*/ true ,
@@ -10952,7 +10946,6 @@ ConstructorDecl::ConstructorDecl(DeclName Name, SourceLoc ConstructorLoc,
1095210946 if (BodyParams)
1095310947 setParameters (BodyParams);
1095410948
10955- InitRetType = TypeLoc (ResultTyR);
1095610949 Bits.ConstructorDecl .HasStubImplementation = 0 ;
1095710950 Bits.ConstructorDecl .Failable = Failable;
1095810951
@@ -10973,16 +10966,11 @@ ConstructorDecl *ConstructorDecl::createImported(
1097310966 failable, failabilityLoc,
1097410967 async, asyncLoc,
1097510968 throws, throwsLoc, TypeLoc::withoutLoc (thrownType),
10976- bodyParams, genericParams, parent,
10977- /* LifetimeDependenceTypeRepr*/ nullptr );
10969+ bodyParams, genericParams, parent);
1097810970 ctor->setClangNode (clangNode);
1097910971 return ctor;
1098010972}
1098110973
10982- void ConstructorDecl::setDeserializedResultTypeLoc (TypeLoc ResultTyR) {
10983- InitRetType = ResultTyR;
10984- }
10985-
1098610974bool ConstructorDecl::isObjCZeroParameterWithLongSelector () const {
1098710975 // The initializer must have a single, non-empty argument name.
1098810976 if (getName ().getArgumentNames ().size () != 1 ||
0 commit comments