Plug trivial leak.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 12 Apr 2010 11:38:35 +0000 (11:38 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 12 Apr 2010 11:38:35 +0000 (11:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101034 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineLICM.cpp

index a29e5059f3ddb5d225bf538d68dbdc2d47177a3e..db67c714c36e2cb93a923a63dd5fcc183057899c 100644 (file)
@@ -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