forked from OSchip/llvm-project
When changing a function, make sure to update the CallGraphNode for the
function, not just the CallGraph. llvm-svn: 16388
This commit is contained in:
parent
d4f3238c12
commit
85d5ccc006
|
@ -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