summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2008-05-03 20:25:26 +0000
committerTorok Edwin <edwintorok@gmail.com>2008-05-03 20:25:26 +0000
commitf6055806d4a6a39c49c441215a9a5d3a8e933de0 (patch)
treea15e44065bfb8733b3e71febaa7ae9529cc83ee7 /include
parent7b399695289793c57196b66d71d5e965639e920c (diff)
downloadllvm-f6055806d4a6a39c49c441215a9a5d3a8e933de0.tar.gz
llvm-f6055806d4a6a39c49c441215a9a5d3a8e933de0.tar.bz2
llvm-f6055806d4a6a39c49c441215a9a5d3a8e933de0.tar.xz
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/PostDominators.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h
index 07910e9538..27c2b26c8c 100644
--- a/include/llvm/Analysis/PostDominators.h
+++ b/include/llvm/Analysis/PostDominators.h
@@ -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 {