Fix a problem with double freeing memory. For some reason, CallGraph is not

acting like a normal pass.  :(

llvm-svn: 13318
This commit is contained in:
Chris Lattner 2004-05-02 16:06:18 +00:00
parent 929291aabb
commit 6942946132
1 changed files with 1 additions and 0 deletions

View File

@ -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) {