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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4429 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp
index 4659bea..358ea2e 100644
--- a/lib/Target/X86/InstSelectSimple.cpp
+++ b/lib/Target/X86/InstSelectSimple.cpp
@@ -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;