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:
fda2b55
)
silence a bogus warning
author
Chris Lattner
<sabre@nondot.org>
Mon, 18 Apr 2005 05:26:21 +0000
(
05:26
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 18 Apr 2005 05:26:21 +0000
(
05:26
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21320
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/CondPropagate.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/CondPropagate.cpp
b/lib/Transforms/Scalar/CondPropagate.cpp
index 138be522ee1092ceb401913de9c2fa752e42b38b..0e63b51bb72bbf06d6b4034061fe7f8f56907557 100644
(file)
--- a/
lib/Transforms/Scalar/CondPropagate.cpp
+++ b/
lib/Transforms/Scalar/CondPropagate.cpp
@@
-83,7
+83,7
@@
void CondProp::SimplifyBlock(BasicBlock *BB) {
// See if we can fold any PHI nodes in this block now.
// FIXME: This would not be required if removePredecessor did this for us!!
PHINode *PN;
- for (BasicBlock::iterator I = BB->begin();
PN = dyn_cast<PHINode>(I++
); )
+ for (BasicBlock::iterator I = BB->begin();
(PN = dyn_cast<PHINode>(I++)
); )
if (Value *PNV = hasConstantValue(PN))
if (!isa<Instruction>(PNV)) {
PN->replaceAllUsesWith(PNV);