diff options
author | Chris Lattner <sabre@nondot.org> | 2003-02-13 21:44:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-02-13 21:44:18 +0000 |
commit | be1094ea351820108c98a7a23cd142e42dd9d9a7 (patch) | |
tree | 13a07c57b9ebddd8b79ca15cd0ae899db9247743 /lib/Analysis/DataStructure | |
parent | 352a6fa36f9c00a8538a252931d94230d6a32aa7 (diff) | |
download | external_llvm-be1094ea351820108c98a7a23cd142e42dd9d9a7.zip external_llvm-be1094ea351820108c98a7a23cd142e42dd9d9a7.tar.gz external_llvm-be1094ea351820108c98a7a23cd142e42dd9d9a7.tar.bz2 |
Hax0r around a deficiency in the Pass infrastructure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5555 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure')
-rw-r--r-- | lib/Analysis/DataStructure/Steensgaard.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Analysis/DataStructure/Steensgaard.cpp b/lib/Analysis/DataStructure/Steensgaard.cpp index bd6a7e9..94b63d7 100644 --- a/lib/Analysis/DataStructure/Steensgaard.cpp +++ b/lib/Analysis/DataStructure/Steensgaard.cpp @@ -19,7 +19,10 @@ namespace { DSGraph *GlobalsGraph; // FIXME: Eliminate globals graph stuff from DNE public: Steens() : ResultGraph(0) {} - ~Steens() { assert(ResultGraph == 0 && "releaseMemory not called?"); } + ~Steens() { + releaseMyMemory(); + assert(ResultGraph == 0 && "releaseMemory not called?"); + } //------------------------------------------------ // Implement the Pass API @@ -30,7 +33,7 @@ namespace { // bool run(Module &M); - virtual void releaseMemory() { delete ResultGraph; ResultGraph = 0; } + virtual void releaseMyMemory() { delete ResultGraph; ResultGraph = 0; } virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesAll(); // Does not transform code... |