diff options
Diffstat (limited to 'lib/Transforms')
| -rw-r--r-- | lib/Transforms/Scalar/CondPropagate.cpp | 2 |
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); |
