remove 'statement with no effect' warning

llvm-svn: 21600
This commit is contained in:
Chris Lattner 2005-04-27 20:12:17 +00:00
parent 2a00530fa7
commit 96704dee49

View File

@ -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<CallInst>(I++))
if (Function *Callee = CI->getCalledFunction())
if (DoesNotReturn.count(CG[Callee]) && !isa<UnreachableInst>(I)) {