summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit0ece94384582605f64f5b90e79cfd561f9269c5f (patch)
treeafb5f97e88e5be1262666dce98a5bb52d4c81dec /llvm/lib/CodeGen/LowerSubregs.cpp
parente330aacbed0eff3704198f7162f5a3a3b8be36fe (diff)
downloadbcm5719-llvm-0ece94384582605f64f5b90e79cfd561f9269c5f.tar.gz
bcm5719-llvm-0ece94384582605f64f5b90e79cfd561f9269c5f.zip
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. llvm-svn: 53746
Diffstat (limited to 'llvm/lib/CodeGen/LowerSubregs.cpp')
-rw-r--r--llvm/lib/CodeGen/LowerSubregs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LowerSubregs.cpp b/llvm/lib/CodeGen/LowerSubregs.cpp
index e2e68d86713..1cdd34b77f4 100644
--- a/llvm/lib/CodeGen/LowerSubregs.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud