aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/LowerSubregs.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-17 23:49:46 +0000
committerDan Gohman <gohman@apple.com>2008-07-17 23:49:46 +0000
commit2c3f7ae3843bdc9dcfe85393e178211976c1f9bd (patch)
tree931e028b14e487fd6d424fd5666f5559ac11e12e /lib/CodeGen/LowerSubregs.cpp
parentdc5f936bf898a945b7b5a823d00ef9b336f2dc6a (diff)
downloadexternal_llvm-2c3f7ae3843bdc9dcfe85393e178211976c1f9bd.zip
external_llvm-2c3f7ae3843bdc9dcfe85393e178211976c1f9bd.tar.gz
external_llvm-2c3f7ae3843bdc9dcfe85393e178211976c1f9bd.tar.bz2
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
Diffstat (limited to 'lib/CodeGen/LowerSubregs.cpp')
-rw-r--r--lib/CodeGen/LowerSubregs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/LowerSubregs.cpp b/lib/CodeGen/LowerSubregs.cpp
index e2e68d8..1cdd34b 100644
--- a/lib/CodeGen/LowerSubregs.cpp
+++ b/lib/CodeGen/LowerSubregs.cpp
@@ -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;
}