aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/Interpreter/Execution.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-09-15 17:06:42 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-09-15 17:06:42 +0000
commit2da5c3dda6f5b9c4ec6d55008d33327764364bd4 (patch)
treeed7e2551f4d2fd2c276d842f289b4471b9d47843 /lib/ExecutionEngine/Interpreter/Execution.cpp
parent7e0e9c635f5439426252bd1ccbfa90b878ba0ca6 (diff)
Convert code to compile with vc7.1.
Patch contributed by Paolo Invernizzi. Thanks Paolo! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16368 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r--lib/ExecutionEngine/Interpreter/Execution.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp
index 5e1ae0629f..589ac7f99d 100644
--- a/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -679,9 +679,10 @@ void Interpreter::SwitchToNewBasicBlock(BasicBlock *Dest, ExecutionContext &SF){
// Now loop over all of the PHI nodes setting their values...
SF.CurInst = SF.CurBB->begin();
- for (unsigned i = 0; PHINode *PN = dyn_cast<PHINode>(SF.CurInst);
- ++SF.CurInst, ++i)
+ for (unsigned i = 0; isa<PHINode>(SF.CurInst); ++SF.CurInst, ++i) {
+ PHINode *PN = cast<PHINode>(SF.CurInst);
SetValue(PN, ResultValues[i], SF);
+ }
}
//===----------------------------------------------------------------------===//