[llvm-commits] [llvm] r53766 - /llvm/trunk/lib/CodeGen/VirtRegMap.cpp
Dan Gohman
gohman at apple.com
Fri Jul 18 11:28:56 PDT 2008
Author: djg
Date: Fri Jul 18 13:28:56 2008
New Revision: 53766
URL: http://llvm.org/viewvc/llvm-project?rev=53766&view=rev
Log:
Fix a LocalSpiller leak. This fixes tramp3d-v4.
Modified:
llvm/trunk/lib/CodeGen/VirtRegMap.cpp
Modified: llvm/trunk/lib/CodeGen/VirtRegMap.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/VirtRegMap.cpp?rev=53766&r1=53765&r2=53766&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/VirtRegMap.cpp (original)
+++ llvm/trunk/lib/CodeGen/VirtRegMap.cpp Fri Jul 18 13:28:56 2008
@@ -971,6 +971,7 @@
InvalidateKills(MI, RegKills, KillOps);
VRM.RemoveMachineInstrFromMaps(&MI);
MBB.erase(&MI);
+ MF.DeleteMachineInstr(NewMI);
return true;
}
MF.DeleteMachineInstr(NewMI);
More information about the llvm-commits
mailing list