summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/FloatingPoint.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-12-20 10:12:17 +0000
committerChris Lattner <sabre@nondot.org>2003-12-20 10:12:17 +0000
commitaf4304f807c87c40d1d97023c1443a5dd811e631 (patch)
tree4b2133c6c6dce3f63ef9f7d8eea86d1d57983144 /llvm/lib/Target/X86/FloatingPoint.cpp
parentd46cd6869503cb5ad58d62b08b24f652feb18522 (diff)
downloadbcm5719-llvm-af4304f807c87c40d1d97023c1443a5dd811e631.tar.gz
bcm5719-llvm-af4304f807c87c40d1d97023c1443a5dd811e631.zip
Fix memory leak in the stackifier, due to the machinebasicblocks not holding
instructions on an ilist llvm-svn: 10556
Diffstat (limited to 'llvm/lib/Target/X86/FloatingPoint.cpp')
-rw-r--r--llvm/lib/Target/X86/FloatingPoint.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/FloatingPoint.cpp b/llvm/lib/Target/X86/FloatingPoint.cpp
index 7bc1f728f89..b8934769965 100644
--- a/llvm/lib/Target/X86/FloatingPoint.cpp
+++ b/llvm/lib/Target/X86/FloatingPoint.cpp
@@ -601,6 +601,7 @@ void FPS::handleSpecialFP(MachineBasicBlock::iterator &I) {
}
I = MBB->erase(I)-1; // Remove the pseudo instruction
+ delete MI;
}
namespace {
OpenPOWER on IntegriCloud