mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 07:31:53 +00:00
Implement destructor for PostDominatorTree to eliminate a memory leak.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50607 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7b39969528
commit
f6055806d4
@ -29,6 +29,8 @@ struct PostDominatorTree : public FunctionPass {
|
||||
DT = new DominatorTreeBase<BasicBlock>(true);
|
||||
}
|
||||
|
||||
~PostDominatorTree();
|
||||
|
||||
virtual bool runOnFunction(Function &F);
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
|
@ -37,6 +37,11 @@ bool PostDominatorTree::runOnFunction(Function &F) {
|
||||
return false;
|
||||
}
|
||||
|
||||
PostDominatorTree::~PostDominatorTree()
|
||||
{
|
||||
delete DT;
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// PostDominanceFrontier Implementation
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Loading…
Reference in New Issue
Block a user