commit | d6da6e28cbf9f6be789124e015f255e4af50cf83 | [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 | 916f473e62411eaac10a6277fb8a3cc4018f225f [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);