summaryrefslogtreecommitdiff
path: root/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
commitea96b5edbbc77fa33f5bf670f8d75730584375fd (patch)
treef17e38ac8adf9ddd4cd9b27a8596743a853b5dd9 /lib/Transforms
parentfda2b55e1b169044828c8f7b2cba073bfd455dd5 (diff)
downloadllvm-ea96b5edbbc77fa33f5bf670f8d75730584375fd.tar.gz
llvm-ea96b5edbbc77fa33f5bf670f8d75730584375fd.tar.bz2
llvm-ea96b5edbbc77fa33f5bf670f8d75730584375fd.tar.xz
silence a bogus warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21320 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/CondPropagate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/CondPropagate.cpp b/lib/Transforms/Scalar/CondPropagate.cpp
index 138be522ee..0e63b51bb7 100644
--- 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);