mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
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:
parent
827cde1c83
commit
d91cbf352a
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user