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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44317 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov 2007-11-25 18:41:39 +00:00
parent 827cde1c83
commit d91cbf352a

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.