projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d86ea2
)
remove 'statement with no effect' warning
author
Chris Lattner
<sabre@nondot.org>
Wed, 27 Apr 2005 20:12:17 +0000
(20:12 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 27 Apr 2005 20:12:17 +0000
(20:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21600
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/PruneEH.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/PruneEH.cpp
b/lib/Transforms/IPO/PruneEH.cpp
index 10242c7d91359e2bd13be4c517e3b42a56de8fb5..f7bf24188245370962faaa5a152f05196195297a 100644
(file)
--- 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)) {