mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 14:47:00 +00:00
When changing a function, make sure to update the CallGraphNode for the
function, not just the CallGraph. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16388 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ff8c495386
commit
3795bc9785
@ -190,6 +190,7 @@ void CallGraph::changeFunction(Function *OldF, Function *NewF) {
|
||||
assert(I != FunctionMap.end() && I->second && !New &&
|
||||
"OldF didn't exist in CG or NewF already does!");
|
||||
New = I->second;
|
||||
New->F = NewF;
|
||||
FunctionMap.erase(I);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user