We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea0387a commit 71412d3Copy full SHA for 71412d3
lib/SILGen/SILGenType.cpp
@@ -272,11 +272,13 @@ class SILGenVTable : public SILVTableVisitor<SILGenVTable> {
272
isResilient = theClass->isResilient();
273
}
274
275
+ /// Populate our list of base methods and overrides.
276
+ void collectMethods() { visitAncestor(theClass); }
277
+
278
void emitVTable() {
279
PrettyStackTraceDecl("silgen emitVTable", theClass);
280
- // Populate our list of base methods and overrides.
- visitAncestor(theClass);
281
+ collectMethods();
282
283
SmallVector<SILVTable::Entry, 8> vtableEntries;
284
vtableEntries.reserve(vtableMethods.size() + 2);
0 commit comments