[llvm-commits] [llvm] r101034 - /llvm/trunk/lib/CodeGen/MachineLICM.cpp
Benjamin Kramer
benny.kra at googlemail.com
Mon Apr 12 04:38:35 PDT 2010
Author: d0k
Date: Mon Apr 12 06:38:35 2010
New Revision: 101034
URL: http://llvm.org/viewvc/llvm-project?rev=101034&view=rev
Log:
Plug trivial leak.
Modified:
llvm/trunk/lib/CodeGen/MachineLICM.cpp
Modified: llvm/trunk/lib/CodeGen/MachineLICM.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineLICM.cpp?rev=101034&r1=101033&r2=101034&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineLICM.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineLICM.cpp Mon Apr 12 06:38:35 2010
@@ -391,6 +391,8 @@
if (PhysRegDefs[Candidates[i].Def] == 1)
HoistPostRA(Candidates[i].MI, Candidates[i].Def);
}
+
+ delete[] PhysRegDefs;
}
/// AddToLiveIns - Add register 'Reg' to the livein sets of BBs in the
More information about the llvm-commits
mailing list