aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/VirtRegMap.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-18 18:28:56 +0000
committerDan Gohman <gohman@apple.com>2008-07-18 18:28:56 +0000
commitfa82857e413578c35b39f5dc1e7ea8525e02e6bf (patch)
tree49306289acace00292267cd7915b697a9ca1d41a /lib/CodeGen/VirtRegMap.cpp
parente98c54c47ca09207ef2d2d6065a512a6b0ed1f0d (diff)
Fix a LocalSpiller leak. This fixes tramp3d-v4.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53766 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/VirtRegMap.cpp')
-rw-r--r--lib/CodeGen/VirtRegMap.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp
index 7696d55efa..b9e96b11e2 100644
--- a/lib/CodeGen/VirtRegMap.cpp
+++ b/lib/CodeGen/VirtRegMap.cpp
@@ -971,6 +971,7 @@ bool LocalSpiller::PrepForUnfoldOpti(MachineBasicBlock &MBB,
InvalidateKills(MI, RegKills, KillOps);
VRM.RemoveMachineInstrFromMaps(&MI);
MBB.erase(&MI);
+ MF.DeleteMachineInstr(NewMI);
return true;
}
MF.DeleteMachineInstr(NewMI);