summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-29 23:40:58 +0000
committerChris Lattner <sabre@nondot.org>2002-10-29 23:40:58 +0000
commit7ee171b717451893207a33b5799676303255ef8d (patch)
treebae0d5c4dd72749ad9c8bdcfe7bc286300cd8192
parent61fa909cc9633b4822ac234019a60821d8501f24 (diff)
downloadbcm5719-llvm-7ee171b717451893207a33b5799676303255ef8d.tar.gz
bcm5719-llvm-7ee171b717451893207a33b5799676303255ef8d.zip
Construct annotation, to make sure it's attached to function
llvm-svn: 4429
-rw-r--r--llvm/lib/Target/X86/InstSelectSimple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/InstSelectSimple.cpp b/llvm/lib/Target/X86/InstSelectSimple.cpp
index 4659bea9072..358ea2ed11c 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;
OpenPOWER on IntegriCloud