diff options
author | Torok Edwin <edwintorok@gmail.com> | 2008-05-03 20:25:26 +0000 |
---|---|---|
committer | Torok Edwin <edwintorok@gmail.com> | 2008-05-03 20:25:26 +0000 |
commit | f6055806d4a6a39c49c441215a9a5d3a8e933de0 (patch) | |
tree | a15e44065bfb8733b3e71febaa7ae9529cc83ee7 /lib/Analysis/PostDominators.cpp | |
parent | 7b399695289793c57196b66d71d5e965639e920c (diff) |
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 'lib/Analysis/PostDominators.cpp')
-rw-r--r-- | lib/Analysis/PostDominators.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Analysis/PostDominators.cpp b/lib/Analysis/PostDominators.cpp index 4330e9039d..c72b140a62 100644 --- a/lib/Analysis/PostDominators.cpp +++ b/lib/Analysis/PostDominators.cpp @@ -37,6 +37,11 @@ bool PostDominatorTree::runOnFunction(Function &F) { return false; } +PostDominatorTree::~PostDominatorTree() +{ + delete DT; +} + //===----------------------------------------------------------------------===// // PostDominanceFrontier Implementation //===----------------------------------------------------------------------===// |