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 | dde059a9de65941e7b9013ddab92d3da403dd7be (patch) | |
tree | 6ff0641d413b7227a05edfabcd985d0a433d070f | |
parent | 3100afaf3f2f3b0224fc03038062fc57f1a9a796 (diff) |
Use the correct MachineRegisterInfo object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45499 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/MachineLICM.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineLICM.cpp b/lib/CodeGen/MachineLICM.cpp index f7373bea86..6bed0f384d 100644 --- a/lib/CodeGen/MachineLICM.cpp +++ b/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; } |