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