commit | 7ee171b717451893207a33b5799676303255ef8d | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Oct 29 23:40:58 2002 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Oct 29 23:40:58 2002 +0000 |
tree | bae0d5c4dd72749ad9c8bdcfe7bc286300cd8192 | |
parent | 61fa909cc9633b4822ac234019a60821d8501f24 [diff] [blame] |
Construct annotation, to make sure it's attached to function llvm-svn: 4429
diff --git a/llvm/lib/Target/X86/InstSelectSimple.cpp b/llvm/lib/Target/X86/InstSelectSimple.cpp index 4659bea..358ea2e 100644 --- a/llvm/lib/Target/X86/InstSelectSimple.cpp +++ b/llvm/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;