mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
PR6880: Don't dereference CallsExternalNode if it's NULL.
llvm-svn: 101897
This commit is contained in:
parent
9127eadfce
commit
b61f85894f
@ -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();
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user