mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
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
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Reference in New Issue
Block a user