summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-05-02 16:06:18 +0000
committerChris Lattner <sabre@nondot.org>2004-05-02 16:06:18 +0000
commit69429461325736a260935b7ce39e8104c39ee43a (patch)
tree9d81e638b4b1b147dfe8e7054e2a30ed25fc1021 /llvm/lib/Analysis
parent929291aabb910c5ce5d98158900b4757a7e39668 (diff)
downloadbcm5719-llvm-69429461325736a260935b7ce39e8104c39ee43a.tar.gz
bcm5719-llvm-69429461325736a260935b7ce39e8104c39ee43a.zip
Fix a problem with double freeing memory. For some reason, CallGraph is not
acting like a normal pass. :( llvm-svn: 13318
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/IPA/CallGraph.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/IPA/CallGraph.cpp b/llvm/lib/Analysis/IPA/CallGraph.cpp
index 74a28d818d7..70bf2c496b0 100644
--- a/llvm/lib/Analysis/IPA/CallGraph.cpp
+++ b/llvm/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) {
OpenPOWER on IntegriCloud