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

Chris Lattner lattner at cs.uiuc.edu
Tue Oct 29 17:42:01 PST 2002


Changes in directory llvm/lib/Target/X86:

InstSelectSimple.cpp updated: 1.7 -> 1.8

---
Log message:

Construct annotation, to make sure it's attached to function


---
Diffs of the changes:

Index: llvm/lib/Target/X86/InstSelectSimple.cpp
diff -u llvm/lib/Target/X86/InstSelectSimple.cpp:1.7 llvm/lib/Target/X86/InstSelectSimple.cpp:1.8
--- llvm/lib/Target/X86/InstSelectSimple.cpp:1.7	Tue Oct 29 16:37:54 2002
+++ llvm/lib/Target/X86/InstSelectSimple.cpp	Tue Oct 29 17:40:58 2002
@@ -32,7 +32,7 @@
     /// the entire function.
     ///
     bool runOnFunction(Function &Fn) {
-      F = new MachineFunction(&Fn, TM);
+      F = &MachineFunction::construct(&Fn, TM);
       visit(Fn);
       RegMap.clear();
       F = 0;





More information about the llvm-commits mailing list