diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-01-02 21:10:54 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-01-02 21:10:54 +0000 |
commit | 0ba41844048944455329c8e2869e6a9a3bc6ecaa (patch) | |
tree | f6b0fb0ed82b6634feeafc44a6b106335defd7ba /llvm/lib | |
parent | e1f28e787144809f9d0fce19f6217f51195fed85 (diff) | |
download | bcm5719-llvm-0ba41844048944455329c8e2869e6a9a3bc6ecaa.tar.gz bcm5719-llvm-0ba41844048944455329c8e2869e6a9a3bc6ecaa.zip |
Use the correct MachineRegisterInfo object.
llvm-svn: 45499
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/MachineLICM.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineLICM.cpp b/llvm/lib/CodeGen/MachineLICM.cpp index f7373bea86b..6bed0f384d0 100644 --- a/llvm/lib/CodeGen/MachineLICM.cpp +++ b/llvm/lib/CodeGen/MachineLICM.cpp @@ -178,7 +178,7 @@ bool MachineLICM::runOnMachineFunction(MachineFunction &MF) { CurMF = &MF; TM = &CurMF->getTarget(); TII = TM->getInstrInfo(); - RegInfo = new MachineRegisterInfo(*TM->getRegisterInfo()); + RegInfo = &CurMF->getRegInfo(); // Get our Loop information... LI = &getAnalysis<MachineLoopInfo>(); @@ -194,7 +194,6 @@ bool MachineLICM::runOnMachineFunction(MachineFunction &MF) { VisitAllLoops(CurLoop); } - delete RegInfo; return Changed; } |