diff options
author | Chris Lattner <sabre@nondot.org> | 2004-05-02 16:06:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-05-02 16:06:18 +0000 |
commit | 7b11e339d20edd9ee64efb179390a2054cd456c0 (patch) | |
tree | eab445819f06f47ab8a08f32e96545d83513bb82 /lib/Analysis/IPA/CallGraph.cpp | |
parent | 224f7e65e0441c4fab12e41c300b494fa35a1060 (diff) |
Fix a problem with double freeing memory. For some reason, CallGraph is not
acting like a normal pass. :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13318 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA/CallGraph.cpp')
-rw-r--r-- | lib/Analysis/IPA/CallGraph.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp index 74a28d818d..70bf2c496b 100644 --- a/lib/Analysis/IPA/CallGraph.cpp +++ b/lib/Analysis/IPA/CallGraph.cpp @@ -126,6 +126,7 @@ void CallGraph::destroy() { delete I->second; FunctionMap.clear(); delete CallsExternalNode; + CallsExternalNode = 0; } static void WriteToOutput(const CallGraphNode *CGN, std::ostream &o) { |