commit | fa82857e413578c35b39f5dc1e7ea8525e02e6bf | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Fri Jul 18 18:28:56 2008 +0000 |
committer | Dan Gohman <gohman@apple.com> | Fri Jul 18 18:28:56 2008 +0000 |
tree | 49306289acace00292267cd7915b697a9ca1d41a | |
parent | e98c54c47ca09207ef2d2d6065a512a6b0ed1f0d [diff] [blame] |
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 7696d55..b9e96b1 100644 --- a/lib/CodeGen/VirtRegMap.cpp +++ b/lib/CodeGen/VirtRegMap.cpp
@@ -971,6 +971,7 @@ InvalidateKills(MI, RegKills, KillOps); VRM.RemoveMachineInstrFromMaps(&MI); MBB.erase(&MI); + MF.DeleteMachineInstr(NewMI); return true; } MF.DeleteMachineInstr(NewMI);