From ea96b5edbbc77fa33f5bf670f8d75730584375fd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 18 Apr 2005 05:26:21 +0000 Subject: [PATCH] silence a bogus warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21320 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/CondPropagate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.34.1