summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-04-18 05:26:21 +0000
committerChris Lattner <sabre@nondot.org>2005-04-18 05:26:21 +0000
commitee8441373068a9bcf654386cc11b74361d4478fc (patch)
treeffb112b2ece4737cfe8eae42e1046759140e468b /llvm/lib/Transforms
parentb61ecb5875a62d8220528eccee72dd983b872e83 (diff)
downloadbcm5719-llvm-ee8441373068a9bcf654386cc11b74361d4478fc.tar.gz
bcm5719-llvm-ee8441373068a9bcf654386cc11b74361d4478fc.zip
silence a bogus warning
llvm-svn: 21320
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/CondPropagate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/CondPropagate.cpp b/llvm/lib/Transforms/Scalar/CondPropagate.cpp
index 138be522ee1..0e63b51bb72 100644
--- a/llvm/lib/Transforms/Scalar/CondPropagate.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud