Construct annotation, to make sure it's attached to function
authorChris Lattner <sabre@nondot.org>
Tue, 29 Oct 2002 23:40:58 +0000 (23:40 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 29 Oct 2002 23:40:58 +0000 (23:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4429 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/InstSelectSimple.cpp
lib/Target/X86/X86ISelSimple.cpp

index 4659bea907293426be6f770f624c30b67cb2c9c1..358ea2ed11c769684ed50717e035e13eb241634b 100644 (file)
@@ -32,7 +32,7 @@ namespace {
     /// the entire function.
     ///
     bool runOnFunction(Function &Fn) {
-      F = new MachineFunction(&Fn, TM);
+      F = &MachineFunction::construct(&Fn, TM);
       visit(Fn);
       RegMap.clear();
       F = 0;
index 4659bea907293426be6f770f624c30b67cb2c9c1..358ea2ed11c769684ed50717e035e13eb241634b 100644 (file)
@@ -32,7 +32,7 @@ namespace {
     /// the entire function.
     ///
     bool runOnFunction(Function &Fn) {
-      F = new MachineFunction(&Fn, TM);
+      F = &MachineFunction::construct(&Fn, TM);
       visit(Fn);
       RegMap.clear();
       F = 0;