mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
Implement destructor for PostDominatorTree to eliminate a memory leak.
llvm-svn: 50607
This commit is contained in:
parent
e8518dd7ff
commit
d016bb2685
@ -29,6 +29,8 @@ struct PostDominatorTree : public FunctionPass {
|
|||||||
DT = new DominatorTreeBase<BasicBlock>(true);
|
DT = new DominatorTreeBase<BasicBlock>(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~PostDominatorTree();
|
||||||
|
|
||||||
virtual bool runOnFunction(Function &F);
|
virtual bool runOnFunction(Function &F);
|
||||||
|
|
||||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||||
|
@ -37,6 +37,11 @@ bool PostDominatorTree::runOnFunction(Function &F) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PostDominatorTree::~PostDominatorTree()
|
||||||
|
{
|
||||||
|
delete DT;
|
||||||
|
}
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// PostDominanceFrontier Implementation
|
// PostDominanceFrontier Implementation
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
Loading…
Reference in New Issue
Block a user