diff options
-rw-r--r-- | lib/Target/X86/InstSelectSimple.cpp | 2 | ||||
-rw-r--r-- | lib/Target/X86/X86ISelSimple.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp index 4659bea907..358ea2ed11 100644 --- a/lib/Target/X86/InstSelectSimple.cpp +++ b/lib/Target/X86/InstSelectSimple.cpp @@ -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; diff --git a/lib/Target/X86/X86ISelSimple.cpp b/lib/Target/X86/X86ISelSimple.cpp index 4659bea907..358ea2ed11 100644 --- a/lib/Target/X86/X86ISelSimple.cpp +++ b/lib/Target/X86/X86ISelSimple.cpp @@ -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; |