[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelSimple.cpp

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



Changes in directory llvm/lib/Target/X86:

X86ISelSimple.cpp updated: 1.278 -> 1.279
---
Log message:

Convert code to compile with vc7.1.

Patch contributed by Paolo Invernizzi. Thanks Paolo!


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

Index: llvm/lib/Target/X86/X86ISelSimple.cpp
diff -u llvm/lib/Target/X86/X86ISelSimple.cpp:1.278 llvm/lib/Target/X86/X86ISelSimple.cpp:1.279
--- llvm/lib/Target/X86/X86ISelSimple.cpp:1.278	Wed Sep  1 17:55:36 2004
+++ llvm/lib/Target/X86/X86ISelSimple.cpp	Wed Sep 15 12:06:41 2004
@@ -643,8 +643,8 @@
 
     // Loop over all of the PHI nodes in the LLVM basic block...
     MachineBasicBlock::iterator PHIInsertPoint = MBB.begin();
-    for (BasicBlock::const_iterator I = BB->begin();
-         PHINode *PN = const_cast<PHINode*>(dyn_cast<PHINode>(I)); ++I) {
+    for (BasicBlock::const_iterator I = BB->begin(); isa<PHINode>(I); ++I) {
+      PHINode *PN = const_cast<PHINode*>(dyn_cast<PHINode>(I));
 
       // Create a new machine instr PHI node, and insert it.
       unsigned PHIReg = getReg(*PN);






More information about the llvm-commits mailing list