File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -277,17 +277,17 @@ class SILGenVTable : public SILVTableVisitor<SILGenVTable> {
277
277
IsSerialized_t serialized = IsNotSerialized;
278
278
auto classIsPublic = theClass->getEffectiveAccess () >= AccessLevel::Public;
279
279
// Only public, fixed-layout classes should have serialized vtables.
280
- if (classIsPublic && !theClass-> isResilient () )
280
+ if (classIsPublic && !isResilient)
281
281
serialized = IsSerialized;
282
282
283
283
// Finally, create the vtable.
284
284
SILVTable::create (SGM.M , theClass, serialized, vtableEntries);
285
285
}
286
286
287
287
void visitAncestor (ClassDecl *ancestor) {
288
- auto superTy = ancestor->getSuperclass ();
289
- if (superTy )
290
- visitAncestor (superTy-> getClassOrBoundGenericClass () );
288
+ auto *superDecl = ancestor->getSuperclassDecl ();
289
+ if (superDecl )
290
+ visitAncestor (superDecl );
291
291
292
292
addVTableEntries (ancestor);
293
293
}
You can’t perform that action at this time.
0 commit comments