@@ -2726,7 +2726,6 @@ namespace {
2726
2726
auto Loc = Impl.importSourceLoc (decl->getLocation ());
2727
2727
auto structDecl = Impl.createDeclWithClangNode <StructDecl>(decl,
2728
2728
AccessLevel::Public, Loc, name, Loc, None, nullptr , dc);
2729
- structDecl->setAddedImplicitInitializers ();
2730
2729
2731
2730
auto options = getDefaultMakeStructRawValuedOptions ();
2732
2731
options |= MakeStructRawValuedFlags::MakeUnlabeledValueInit;
@@ -2775,7 +2774,6 @@ namespace {
2775
2774
C.getProtocol (KnownProtocolKind::ErrorCodeProtocol))) {
2776
2775
// Create the wrapper struct.
2777
2776
errorWrapper = new (C) StructDecl (loc, name, loc, None, nullptr , dc);
2778
- errorWrapper->setAddedImplicitInitializers ();
2779
2777
errorWrapper->setAccess (AccessLevel::Public);
2780
2778
errorWrapper->getAttrs ().add (
2781
2779
new (Impl.SwiftContext ) FrozenAttr (/* IsImplicit*/ true ));
@@ -3203,7 +3201,6 @@ namespace {
3203
3201
name,
3204
3202
Impl.importSourceLoc (decl->getLocation ()),
3205
3203
None, nullptr , dc);
3206
- result->setAddedImplicitInitializers ();
3207
3204
Impl.ImportedDecls [{decl->getCanonicalDecl (), getVersion ()}] = result;
3208
3205
3209
3206
// FIXME: Figure out what to do with superclasses in C++. One possible
@@ -5484,7 +5481,6 @@ SwiftDeclConverter::importSwiftNewtype(const clang::TypedefNameDecl *decl,
5484
5481
5485
5482
auto structDecl = Impl.createDeclWithClangNode <StructDecl>(
5486
5483
decl, AccessLevel::Public, Loc, name, Loc, None, nullptr , dc);
5487
- structDecl->setAddedImplicitInitializers ();
5488
5484
5489
5485
// Import the type of the underlying storage
5490
5486
auto storedUnderlyingType = Impl.importTypeIgnoreIUO (
@@ -5760,7 +5756,6 @@ SwiftDeclConverter::importAsOptionSetType(DeclContext *dc, Identifier name,
5760
5756
// Create a struct with the underlying type as a field.
5761
5757
auto structDecl = Impl.createDeclWithClangNode <StructDecl>(
5762
5758
decl, AccessLevel::Public, Loc, name, Loc, None, nullptr , dc);
5763
- structDecl->setAddedImplicitInitializers ();
5764
5759
5765
5760
makeStructRawValued (Impl, structDecl, underlyingType,
5766
5761
{KnownProtocolKind::OptionSet});
0 commit comments