diff --git a/lib/Transforms/IPO/DeadTypeElimination.cpp b/lib/Transforms/IPO/DeadTypeElimination.cpp index d2d9e71ae61..8e705ebff56 100644 --- a/lib/Transforms/IPO/DeadTypeElimination.cpp +++ b/lib/Transforms/IPO/DeadTypeElimination.cpp @@ -122,6 +122,7 @@ bool CleanupGCCOutput::PatchUpMethodReferences(Module *M) { delete Methods[i]; Methods.erase(Methods.begin()+i); Changed = true; + continue; } }