@@ -493,9 +493,10 @@ SwiftDeclSynthesizer::createDefaultConstructor(NominalTypeDecl *structDecl) {
493493 ConstructorDecl (name, structDecl->getLoc (),
494494 /* Failable=*/ false , /* FailabilityLoc=*/ SourceLoc (),
495495 /* Async=*/ false , /* AsyncLoc=*/ SourceLoc (),
496- /* Throws=*/ false , /* ThrowsLoc=*/ SourceLoc (),
496+ /* Throws=*/ false , /* ThrowsLoc=*/ SourceLoc (),
497497 /* ThrownType=*/ TypeLoc (), emptyPL,
498- /* GenericParams=*/ nullptr , structDecl);
498+ /* GenericParams=*/ nullptr , structDecl,
499+ /* LifetimeDependentReturnTypeRepr*/ nullptr );
499500
500501 constructor->setAccess (AccessLevel::Public);
501502
@@ -623,9 +624,10 @@ ConstructorDecl *SwiftDeclSynthesizer::createValueConstructor(
623624 ConstructorDecl (name, structDecl->getLoc (),
624625 /* Failable=*/ false , /* FailabilityLoc=*/ SourceLoc (),
625626 /* Async=*/ false , /* AsyncLoc=*/ SourceLoc (),
626- /* Throws=*/ false , /* ThrowsLoc=*/ SourceLoc (),
627+ /* Throws=*/ false , /* ThrowsLoc=*/ SourceLoc (),
627628 /* ThrownType=*/ TypeLoc (), paramList,
628- /* GenericParams=*/ nullptr , structDecl);
629+ /* GenericParams=*/ nullptr , structDecl,
630+ /* LifetimeDependentReturnTypeRepr*/ nullptr );
629631
630632 constructor->setAccess (AccessLevel::Public);
631633
@@ -1271,13 +1273,14 @@ SwiftDeclSynthesizer::makeEnumRawValueConstructor(EnumDecl *enumDecl) {
12711273 auto paramPL = ParameterList::createWithoutLoc (param);
12721274
12731275 DeclName name (C, DeclBaseName::createConstructor (), paramPL);
1274- auto *ctorDecl = new (C)
1275- ConstructorDecl (name, enumDecl->getLoc (),
1276- /* Failable=*/ true , /* FailabilityLoc=*/ SourceLoc (),
1277- /* Async=*/ false , /* AsyncLoc=*/ SourceLoc (),
1278- /* Throws=*/ false , /* ThrowsLoc=*/ SourceLoc (),
1279- /* ThrownType=*/ TypeLoc (), paramPL,
1280- /* GenericParams=*/ nullptr , enumDecl);
1276+ auto *ctorDecl =
1277+ new (C) ConstructorDecl (name, enumDecl->getLoc (),
1278+ /* Failable=*/ true , /* FailabilityLoc=*/ SourceLoc (),
1279+ /* Async=*/ false , /* AsyncLoc=*/ SourceLoc (),
1280+ /* Throws=*/ false , /* ThrowsLoc=*/ SourceLoc (),
1281+ /* ThrownType=*/ TypeLoc (), paramPL,
1282+ /* GenericParams=*/ nullptr , enumDecl,
1283+ /* LifetimeDependentReturnTypeRepr*/ nullptr );
12811284 ctorDecl->setImplicit ();
12821285 ctorDecl->setAccess (AccessLevel::Public);
12831286 ctorDecl->setBodySynthesizer (synthesizeEnumRawValueConstructorBody, enumDecl);
0 commit comments