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);