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

Chris Lattner lattner at cs.uiuc.edu
Thu Nov 21 11:28:01 PST 2002


Changes in directory llvm/lib/Target/X86:

InstSelectSimple.cpp updated: 1.33 -> 1.34

---
Log message:

Fix a bug that prevented compilation of multiple functions


---
Diffs of the changes:

Index: llvm/lib/Target/X86/InstSelectSimple.cpp
diff -u llvm/lib/Target/X86/InstSelectSimple.cpp:1.33 llvm/lib/Target/X86/InstSelectSimple.cpp:1.34
--- llvm/lib/Target/X86/InstSelectSimple.cpp:1.33	Thu Nov 21 10:19:42 2002
+++ llvm/lib/Target/X86/InstSelectSimple.cpp	Thu Nov 21 11:26:58 2002
@@ -44,6 +44,7 @@
       F = &MachineFunction::construct(&Fn, TM);
       visit(Fn);
       RegMap.clear();
+      CurReg = MRegisterInfo::FirstVirtualRegister;
       F = 0;
       return false;  // We never modify the LLVM itself.
     }





More information about the llvm-commits mailing list