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:
Dan Gohman
2008-07-17 23:49:46 +00:00
parent dc5f936bf8
commit 2c3f7ae384
5 changed files with 27 additions and 7 deletions
+3 -3
View File
@@ -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;
}