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 | 3699ef409c6a027cc15101750034ed67b4de87ed (patch) | |
| tree | 2bac7b46ae0992216f0b132f285e9db64b10b5df /llvm | |
| parent | 60ede774af2db1fab5a6863cee3771e8be32bcdc (diff) | |
| download | bcm5719-llvm-3699ef409c6a027cc15101750034ed67b4de87ed.tar.gz bcm5719-llvm-3699ef409c6a027cc15101750034ed67b4de87ed.zip  | |
Hax0r around a deficiency in the Pass infrastructure
llvm-svn: 5555
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Analysis/DataStructure/Steensgaard.cpp | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/DataStructure/Steensgaard.cpp b/llvm/lib/Analysis/DataStructure/Steensgaard.cpp index bd6a7e932a3..94b63d77a61 100644 --- a/llvm/lib/Analysis/DataStructure/Steensgaard.cpp +++ b/llvm/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...  | 

