llvm.org GIT mirror llvm / f605580
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 Torok Edwin 12 years ago
2 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2727 PostDominatorTree() : FunctionPass((intptr_t)&ID) {
2828 DT = new DominatorTreeBase(true);
2929 }
30
31 ~PostDominatorTree();
3032
3133 virtual bool runOnFunction(Function &F);
3234
3434 DT->recalculate(F);
3535 DEBUG(DT->dump());
3636 return false;
37 }
38
39 PostDominatorTree::~PostDominatorTree()
40 {
41 delete DT;
3742 }
3843
3944 //===----------------------------------------------------------------------===//