summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
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
commit2a45575c718f76088e133989b1b87fe558bf7fd0 (patch)
treeb61915d0571bfdf94e2d11866fbca6ad5a9536f0 /llvm/lib/Analysis
parentfa0e3c4a928fef3ddefa586e35d87ad3471e7d72 (diff)
downloadbcm5719-llvm-2a45575c718f76088e133989b1b87fe558bf7fd0.tar.gz
bcm5719-llvm-2a45575c718f76088e133989b1b87fe558bf7fd0.zip
Implement destructor for PostDominatorTree to eliminate a memory leak.
llvm-svn: 50607
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/PostDominators.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/PostDominators.cpp b/llvm/lib/Analysis/PostDominators.cpp
index 4330e9039d1..c72b140a622 100644
--- a/llvm/lib/Analysis/PostDominators.cpp
+++ b/llvm/lib/Analysis/PostDominators.cpp
@@ -37,6 +37,11 @@ bool PostDominatorTree::runOnFunction(Function &F) {
return false;
}
+PostDominatorTree::~PostDominatorTree()
+{
+ delete DT;
+}
+
//===----------------------------------------------------------------------===//
// PostDominanceFrontier Implementation
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud