diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-09-15 17:06:42 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-09-15 17:06:42 +0000 |
commit | 6614946443f3df8c4d7263455302a5734f2c1ce3 (patch) | |
tree | 18fcacf016ff4c3e33495269840e35970ce04922 /llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp | |
parent | f38ee634230a7acf95d9a42a7867ceca11754576 (diff) | |
download | bcm5719-llvm-6614946443f3df8c4d7263455302a5734f2c1ce3.tar.gz bcm5719-llvm-6614946443f3df8c4d7263455302a5734f2c1ce3.zip |
Convert code to compile with vc7.1.
Patch contributed by Paolo Invernizzi. Thanks Paolo!
llvm-svn: 16368
Diffstat (limited to 'llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp b/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp index 53c56d2631a..c365622cb44 100644 --- a/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp +++ b/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp @@ -572,8 +572,8 @@ void CEE::ForwardSuccessorTo(TerminatorInst *TI, unsigned SuccNo, // edge from the PHI node, and we need to replace any references to the PHI // node with a new value. // - for (BasicBlock::iterator I = OldSucc->begin(); - PHINode *PN = dyn_cast<PHINode>(I); ) { + for (BasicBlock::iterator I = OldSucc->begin(); isa<PHINode>(I); ) { + PHINode *PN = cast<PHINode>(I); // Get the value flowing across the old edge and remove the PHI node entry // for this edge: we are about to remove the edge! Don't remove the PHI |