[llvm-commits] CVS: llvm/lib/Transforms/IPO/PruneEH.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Apr 27 13:12:30 PDT 2005
Changes in directory llvm/lib/Transforms/IPO:
PruneEH.cpp updated: 1.20 -> 1.21
---
Log message:
remove 'statement with no effect' warning
---
Diffs of the changes: (+1 -1)
PruneEH.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Transforms/IPO/PruneEH.cpp
diff -u llvm/lib/Transforms/IPO/PruneEH.cpp:1.20 llvm/lib/Transforms/IPO/PruneEH.cpp:1.21
--- llvm/lib/Transforms/IPO/PruneEH.cpp:1.20 Tue Apr 26 23:52:23 2005
+++ llvm/lib/Transforms/IPO/PruneEH.cpp Wed Apr 27 15:12:17 2005
@@ -170,7 +170,7 @@
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)) {
More information about the llvm-commits
mailing list