mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Use the correct MachineRegisterInfo object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45499 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3100afaf3f
commit
dde059a9de
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user