From: Chris Lattner Date: Sat, 20 Dec 2003 10:12:17 +0000 (+0000) Subject: Fix memory leak in the stackifier, due to the machinebasicblocks not holding X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9068574a290235ba5d4d6b6619b5d5527e1bad2c;p=oota-llvm.git Fix memory leak in the stackifier, due to the machinebasicblocks not holding instructions on an ilist git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10556 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/FloatingPoint.cpp b/lib/Target/X86/FloatingPoint.cpp index 7bc1f728f89..b8934769965 100644 --- a/lib/Target/X86/FloatingPoint.cpp +++ b/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 { diff --git a/lib/Target/X86/X86FloatingPoint.cpp b/lib/Target/X86/X86FloatingPoint.cpp index 7bc1f728f89..b8934769965 100644 --- a/lib/Target/X86/X86FloatingPoint.cpp +++ b/lib/Target/X86/X86FloatingPoint.cpp @@ -601,6 +601,7 @@ void FPS::handleSpecialFP(MachineBasicBlock::iterator &I) { } I = MBB->erase(I)-1; // Remove the pseudo instruction + delete MI; } namespace {