PR6880: Don't dereference CallsExternalNode if it's NULL.

llvm-svn: 101897
This commit is contained in:
Benjamin Kramer 2010-04-20 12:16:50 +00:00
parent 6a2542b629
commit 395857705f
1 changed files with 5 additions and 3 deletions

View File

@ -158,9 +158,11 @@ private:
// destroy - Release memory for the call graph
virtual void destroy() {
/// CallsExternalNode is not in the function map, delete it explicitly.
if (CallsExternalNode) {
CallsExternalNode->allReferencesDropped();
delete CallsExternalNode;
CallsExternalNode = 0;
}
CallGraph::destroy();
}
};