From: Chris Lattner Date: Mon, 18 Apr 2005 05:26:21 +0000 (+0000) Subject: silence a bogus warning X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ea96b5edbbc77fa33f5bf670f8d75730584375fd;p=oota-llvm.git silence a bogus warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21320 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/CondPropagate.cpp b/lib/Transforms/Scalar/CondPropagate.cpp index 138be522ee1..0e63b51bb72 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(I++); ) + for (BasicBlock::iterator I = BB->begin(); (PN = dyn_cast(I++)); ) if (Value *PNV = hasConstantValue(PN)) if (!isa(PNV)) { PN->replaceAllUsesWith(PNV);