diff --git a/lib/Transforms/IPO/PruneEH.cpp b/lib/Transforms/IPO/PruneEH.cpp index 10242c7d913..f7bf2418824 100644 --- a/lib/Transforms/IPO/PruneEH.cpp +++ b/lib/Transforms/IPO/PruneEH.cpp @@ -170,7 +170,7 @@ bool PruneEH::SimplifyFunction(Function *F) { MadeChange = true; } - for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; I) + for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ) if (CallInst *CI = dyn_cast(I++)) if (Function *Callee = CI->getCalledFunction()) if (DoesNotReturn.count(CG[Callee]) && !isa(I)) {