From 7ee171b717451893207a33b5799676303255ef8d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 29 Oct 2002 23:40:58 +0000 Subject: [PATCH] Construct annotation, to make sure it's attached to function llvm-svn: 4429 --- llvm/lib/Target/X86/InstSelectSimple.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/InstSelectSimple.cpp b/llvm/lib/Target/X86/InstSelectSimple.cpp index 4659bea90729..358ea2ed11c7 100644 --- a/llvm/lib/Target/X86/InstSelectSimple.cpp +++ b/llvm/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;