diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-04-18 05:26:21 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-04-18 05:26:21 +0000 |
| commit | ee8441373068a9bcf654386cc11b74361d4478fc (patch) | |
| tree | ffb112b2ece4737cfe8eae42e1046759140e468b /llvm/lib/Transforms | |
| parent | b61ecb5875a62d8220528eccee72dd983b872e83 (diff) | |
| download | bcm5719-llvm-ee8441373068a9bcf654386cc11b74361d4478fc.tar.gz bcm5719-llvm-ee8441373068a9bcf654386cc11b74361d4478fc.zip | |
silence a bogus warning
llvm-svn: 21320
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/CondPropagate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/CondPropagate.cpp b/llvm/lib/Transforms/Scalar/CondPropagate.cpp index 138be522ee1..0e63b51bb72 100644 --- a/llvm/lib/Transforms/Scalar/CondPropagate.cpp +++ b/llvm/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); |

