mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Re-introduce LeakDetector support for MachineInstrs and MachineBasicBlocks.
Fix a leak that this turned up in LowerSubregs.cpp. And, comment a leak in LiveIntervalAnalysis.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53746 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -80,7 +80,7 @@ bool LowerSubregsInstructionPass::LowerExtract(MachineInstr *MI) {
|
||||
}
|
||||
|
||||
DOUT << "\n";
|
||||
MBB->remove(MI);
|
||||
MBB->erase(MI);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ bool LowerSubregsInstructionPass::LowerSubregToReg(MachineInstr *MI) {
|
||||
#endif
|
||||
|
||||
DOUT << "\n";
|
||||
MBB->remove(MI);
|
||||
MBB->erase(MI);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@ bool LowerSubregsInstructionPass::LowerInsert(MachineInstr *MI) {
|
||||
}
|
||||
|
||||
DOUT << "\n";
|
||||
MBB->remove(MI);
|
||||
MBB->erase(MI);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user