Remove a leak. Destroy LoopInfoBase object. releaseMemory() is actually called in its dtor.

llvm-svn: 44317
This commit is contained in:
Anton Korobeynikov 2007-11-25 18:41:39 +00:00
parent 852ed06d60
commit bd9df0f200
1 changed files with 1 additions and 1 deletions

View File

@ -834,7 +834,7 @@ public:
LI = new LoopInfoBase<BasicBlock>();
}
~LoopInfo() { LI->releaseMemory(); }
~LoopInfo() { delete LI; }
/// iterator/begin/end - The interface to the top-level loops in the current
/// function.