Don't bother calling releaseMemory before destroying the DominatorTreeBase.
authorDan Gohman <gohman@apple.com>
Fri, 18 Jun 2010 16:09:11 +0000 (16:09 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 18 Jun 2010 16:09:11 +0000 (16:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106287 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/Dominators.h
lib/CodeGen/MachineDominators.cpp

index f8103103a0e394df2a7207fdbed98e6dc669127a..d83573f702df4a46ae7b00a2f2cae81f0828c6db 100644 (file)
@@ -704,7 +704,6 @@ public:
   }
 
   ~DominatorTree() {
-    DT->releaseMemory();
     delete DT;
   }
 
index 408873903b0d96b17ca7495a844a3fda47c424c3..b5f8fbba99debdfc190349329a2b70aecb1c0f0c 100644 (file)
@@ -46,7 +46,6 @@ MachineDominatorTree::MachineDominatorTree()
 }
 
 MachineDominatorTree::~MachineDominatorTree() {
-  DT->releaseMemory();
   delete DT;
 }