@@ -493,9 +493,10 @@ SwiftDeclSynthesizer::createDefaultConstructor(NominalTypeDecl *structDecl) {
493
493
ConstructorDecl (name, structDecl->getLoc (),
494
494
/* Failable=*/ false , /* FailabilityLoc=*/ SourceLoc (),
495
495
/* Async=*/ false , /* AsyncLoc=*/ SourceLoc (),
496
- /* Throws=*/ false , /* ThrowsLoc=*/ SourceLoc (),
496
+ /* Throws=*/ false , /* ThrowsLoc=*/ SourceLoc (),
497
497
/* ThrownType=*/ TypeLoc (), emptyPL,
498
- /* GenericParams=*/ nullptr , structDecl);
498
+ /* GenericParams=*/ nullptr , structDecl,
499
+ /* LifetimeDependentReturnTypeRepr*/ nullptr );
499
500
500
501
constructor->setAccess (AccessLevel::Public);
501
502
@@ -623,9 +624,10 @@ ConstructorDecl *SwiftDeclSynthesizer::createValueConstructor(
623
624
ConstructorDecl (name, structDecl->getLoc (),
624
625
/* Failable=*/ false , /* FailabilityLoc=*/ SourceLoc (),
625
626
/* Async=*/ false , /* AsyncLoc=*/ SourceLoc (),
626
- /* Throws=*/ false , /* ThrowsLoc=*/ SourceLoc (),
627
+ /* Throws=*/ false , /* ThrowsLoc=*/ SourceLoc (),
627
628
/* ThrownType=*/ TypeLoc (), paramList,
628
- /* GenericParams=*/ nullptr , structDecl);
629
+ /* GenericParams=*/ nullptr , structDecl,
630
+ /* LifetimeDependentReturnTypeRepr*/ nullptr );
629
631
630
632
constructor->setAccess (AccessLevel::Public);
631
633
@@ -1271,13 +1273,14 @@ SwiftDeclSynthesizer::makeEnumRawValueConstructor(EnumDecl *enumDecl) {
1271
1273
auto paramPL = ParameterList::createWithoutLoc (param);
1272
1274
1273
1275
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 );
1281
1284
ctorDecl->setImplicit ();
1282
1285
ctorDecl->setAccess (AccessLevel::Public);
1283
1286
ctorDecl->setBodySynthesizer (synthesizeEnumRawValueConstructorBody, enumDecl);
0 commit comments