mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-12 23:40:43 +00:00
use an accessor instead of poking internals of a node.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80532 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b0fc781115
commit
2adb8306e2
@ -196,7 +196,7 @@ void CallGraph::dump() const {
|
||||
// is to dropAllReferences before calling this.
|
||||
//
|
||||
Function *CallGraph::removeFunctionFromModule(CallGraphNode *CGN) {
|
||||
assert(CGN->CalledFunctions.empty() && "Cannot remove function from call "
|
||||
assert(CGN->empty() && "Cannot remove function from call "
|
||||
"graph if it references other functions!");
|
||||
Function *F = CGN->getFunction(); // Get the function for the call graph node
|
||||
delete CGN; // Delete the call graph node for this func
|
||||
|
Loading…
x
Reference in New Issue
Block a user