From 678d9b7ed030dd79ed5ac749b0b21b6cb0859cd0 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 12 Apr 2010 11:38:35 +0000 Subject: [PATCH] Plug trivial leak. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101034 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MachineLICM.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/CodeGen/MachineLICM.cpp b/lib/CodeGen/MachineLICM.cpp index a29e5059f3d..db67c714c36 100644 --- a/lib/CodeGen/MachineLICM.cpp +++ b/lib/CodeGen/MachineLICM.cpp @@ -391,6 +391,8 @@ void MachineLICM::HoistRegionPostRA(MachineDomTreeNode *N) { 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 -- 2.34.1