@@ -1098,7 +1098,7 @@ class SILGenType : public TypeMemberVisitor<SILGenType> {
10981098 void emitType () {
10991099 SGM.emitLazyConformancesForType (theType);
11001100
1101- for (Decl *member : theType->getMembersForLowering ()) {
1101+ for (Decl *member : theType->getABIMembers ()) {
11021102 visit (member);
11031103 }
11041104
@@ -1141,6 +1141,13 @@ class SILGenType : public TypeMemberVisitor<SILGenType> {
11411141 // ===--------------------------------------------------------------------===//
11421142 // Visitors for subdeclarations
11431143 // ===--------------------------------------------------------------------===//
1144+ void visit (Decl *D) {
1145+ if (SGM.shouldSkipDecl (D))
1146+ return ;
1147+
1148+ TypeMemberVisitor::visit (D);
1149+ }
1150+
11441151 void visitTypeAliasDecl (TypeAliasDecl *tad) {}
11451152 void visitOpaqueTypeDecl (OpaqueTypeDecl *otd) {}
11461153 void visitGenericTypeParamDecl (GenericTypeParamDecl *d) {}
@@ -1273,7 +1280,7 @@ class SILGenExtension : public TypeMemberVisitor<SILGenExtension> {
12731280 // @_objcImplementation extension, but we don't actually need to do any of
12741281 // the stuff that it currently does.
12751282
1276- for (Decl *member : e->getMembersForLowering ()) {
1283+ for (Decl *member : e->getABIMembers ()) {
12771284 visit (member);
12781285 }
12791286
@@ -1300,6 +1307,13 @@ class SILGenExtension : public TypeMemberVisitor<SILGenExtension> {
13001307 // ===--------------------------------------------------------------------===//
13011308 // Visitors for subdeclarations
13021309 // ===--------------------------------------------------------------------===//
1310+ void visit (Decl *D) {
1311+ if (SGM.shouldSkipDecl (D))
1312+ return ;
1313+
1314+ TypeMemberVisitor::visit (D);
1315+ }
1316+
13031317 void visitTypeAliasDecl (TypeAliasDecl *tad) {}
13041318 void visitOpaqueTypeDecl (OpaqueTypeDecl *tad) {}
13051319 void visitGenericTypeParamDecl (GenericTypeParamDecl *d) {}
0 commit comments