diff options
| author | Dan Gohman <gohman@apple.com> | 2008-07-18 18:28:56 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-07-18 18:28:56 +0000 |
| commit | 597bd1633e336a9cffcb894a6db97bb05b776447 (patch) | |
| tree | 5d19d9a10af5a02f76b02db6628215670ea9eb40 /llvm/lib/CodeGen | |
| parent | f41b1c45fa5016ea87fb444f77aaf3de9b5fcb81 (diff) | |
| download | bcm5719-llvm-597bd1633e336a9cffcb894a6db97bb05b776447.tar.gz bcm5719-llvm-597bd1633e336a9cffcb894a6db97bb05b776447.zip | |
Fix a LocalSpiller leak. This fixes tramp3d-v4.
llvm-svn: 53766
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/VirtRegMap.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp index 7696d55efa5..b9e96b11e29 100644 --- a/llvm/lib/CodeGen/VirtRegMap.cpp +++ b/llvm/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); |

