silence a bogus warning
authorChris Lattner <sabre@nondot.org>
Mon, 18 Apr 2005 05:26:21 +0000 (05:26 +0000)
committerChris 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

index 138be522ee1092ceb401913de9c2fa752e42b38b..0e63b51bb72bbf06d6b4034061fe7f8f56907557 100644 (file)
@@ -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);