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:
2f86362
)
remove some dead code identified by coverity
author
Chris Lattner
<sabre@nondot.org>
Sun, 14 May 2006 18:45:44 +0000
(18:45 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 14 May 2006 18:45:44 +0000
(18:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28289
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/SimplifyCFG.cpp
b/lib/Transforms/Utils/SimplifyCFG.cpp
index fb518b16fbb9dfc4966f2c808b04ad3fd8939e62..ecd1471b4e39317b3e1e116e27f078a47c7cede0 100644
(file)
--- a/
lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/
lib/Transforms/Utils/SimplifyCFG.cpp
@@
-118,7
+118,7
@@
static bool CanPropagatePredecessorsForPHIs(BasicBlock *BB, BasicBlock *Succ) {
// If the PHI nodes in BB are only used by instructions in Succ, we are ok if
// BB and Succ have no common predecessors.
- for (BasicBlock::iterator I = BB->begin(); isa<PHINode>(I)
&& IsSafe
; ++I) {
+ for (BasicBlock::iterator I = BB->begin(); isa<PHINode>(I); ++I) {
PHINode *PN = cast<PHINode>(I);
for (Value::use_iterator UI = PN->use_begin(), E = PN->use_end(); UI != E;
++UI)