forked from OSchip/llvm-project
Remove a leak. Destroy LoopInfoBase object. releaseMemory() is actually called in its dtor.
llvm-svn: 44317
This commit is contained in:
parent
852ed06d60
commit
bd9df0f200
|
@ -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