From 6bf0c5675f17a58a64b02accf489da811a933810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edwin=20T=C3=B6r=C3=B6k?= Date: Sat, 3 May 2008 20:25:26 +0000 Subject: 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 --- include/llvm/Analysis/PostDominators.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h index 07910e9..27c2b26 100644 --- a/include/llvm/Analysis/PostDominators.h +++ b/include/llvm/Analysis/PostDominators.h @@ -29,6 +29,8 @@ struct PostDominatorTree : public FunctionPass { DT = new DominatorTreeBase(true); } + ~PostDominatorTree(); + virtual bool runOnFunction(Function &F); virtual void getAnalysisUsage(AnalysisUsage &AU) const { -- cgit v1.1