[llvm-commits] CVS: llvm/lib/ExecutionEngine/Interpreter/Execution.cpp

Reid Spencer reid at x10sys.com
Wed Sep 15 10:06:53 PDT 2004



Changes in directory llvm/lib/ExecutionEngine/Interpreter:

Execution.cpp updated: 1.132 -> 1.133
---
Log message:

Convert code to compile with vc7.1.

Patch contributed by Paolo Invernizzi. Thanks Paolo!


---
Diffs of the changes:  (+3 -2)

Index: llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
diff -u llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.132 llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.133
--- llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.132	Wed Sep  1 17:55:35 2004
+++ llvm/lib/ExecutionEngine/Interpreter/Execution.cpp	Wed Sep 15 12:06:41 2004
@@ -679,9 +679,10 @@
 
   // 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);
+  }
 }
 
 //===----------------------------------------------------------------------===//






More information about the llvm-commits mailing list