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 | 209a0aea220548b96c80963062958b97f4ee394f (patch) | |
tree | 8dc67b3454454b5069fb313536ee4a349ded69a5 /lib/Transforms | |
parent | 2d86ea21dd76647cb054fd5d27df9e49efc672b6 (diff) |
remove 'statement with no effect' warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21600 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/IPO/PruneEH.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/PruneEH.cpp b/lib/Transforms/IPO/PruneEH.cpp index 10242c7d91..f7bf241882 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<CallInst>(I++)) if (Function *Callee = CI->getCalledFunction()) if (DoesNotReturn.count(CG[Callee]) && !isa<UnreachableInst>(I)) { |