File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
SILOptimizer/UtilityPasses Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2205,6 +2205,11 @@ void IRGenerator::emitObjCActorsNeedingSuperclassSwizzle() {
2205
2205
// / from other modules. This happens e.g. if a public class contains a (dead)
2206
2206
// / private method.
2207
2207
void IRGenModule::emitVTableStubs () {
2208
+ if (getSILModule ().getOptions ().DropAllSILAfterSerialization ) {
2209
+ // We're asked to emit an empty IR module
2210
+ return ;
2211
+ }
2212
+
2208
2213
llvm::Function *stub = nullptr ;
2209
2214
for (auto I = getSILModule ().zombies_begin ();
2210
2215
I != getSILModule ().zombies_end (); ++I) {
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ class DropAllSILPass : public SILModuleTransform {
44
44
for (SILFunction *F : FunctionsToErase) {
45
45
notifyWillDeleteFunction (F);
46
46
M.eraseFunction (F);
47
- M.removeFromZombieList (F->getName ());
48
47
}
49
48
50
49
for (SILGlobalVariable *G : GlobalsToErase) {
You can’t perform that action at this time.
0 commit comments