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
This commit is contained in:
Chris Lattner 2004-05-02 16:06:18 +00:00
parent 224f7e65e0
commit 7b11e339d2

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