diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-04-27 20:12:17 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-04-27 20:12:17 +0000 |
| commit | 36ffb1ff37f823c29942b1fe15556f0217badda0 (patch) | |
| tree | 613e871509e0bdb1f56008851e14eb43a48544a5 /llvm/lib/Transforms | |
| parent | 4a73c2cfdc6e3113e2366c6e497e7c7ed51b1601 (diff) | |
| download | bcm5719-llvm-36ffb1ff37f823c29942b1fe15556f0217badda0.tar.gz bcm5719-llvm-36ffb1ff37f823c29942b1fe15556f0217badda0.zip | |
remove 'statement with no effect' warning
llvm-svn: 21600
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/IPO/PruneEH.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/PruneEH.cpp b/llvm/lib/Transforms/IPO/PruneEH.cpp index 10242c7d913..f7bf2418824 100644 --- a/llvm/lib/Transforms/IPO/PruneEH.cpp +++ b/llvm/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<CallInst>(I++)) if (Function *Callee = CI->getCalledFunction()) if (DoesNotReturn.count(CG[Callee]) && !isa<UnreachableInst>(I)) { |

