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() {
22052205// / from other modules. This happens e.g. if a public class contains a (dead)
22062206// / private method.
22072207void IRGenModule::emitVTableStubs () {
2208+ if (getSILModule ().getOptions ().DropAllSILAfterSerialization ) {
2209+ // We're asked to emit an empty IR module
2210+ return ;
2211+ }
2212+
22082213 llvm::Function *stub = nullptr ;
22092214 for (auto I = getSILModule ().zombies_begin ();
22102215 I != getSILModule ().zombies_end (); ++I) {
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ class DropAllSILPass : public SILModuleTransform {
4444 for (SILFunction *F : FunctionsToErase) {
4545 notifyWillDeleteFunction (F);
4646 M.eraseFunction (F);
47- M.removeFromZombieList (F->getName ());
4847 }
4948
5049 for (SILGlobalVariable *G : GlobalsToErase) {
You can’t perform that action at this time.
0 commit comments