From: Dan Gohman Date: Fri, 18 Jul 2008 18:28:56 +0000 (+0000) Subject: Fix a LocalSpiller leak. This fixes tramp3d-v4. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=fa82857e413578c35b39f5dc1e7ea8525e02e6bf;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp index 7696d55efa5..b9e96b11e29 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);