projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff8c495
)
When changing a function, make sure to update the CallGraphNode for the
author
Chris Lattner
<sabre@nondot.org>
Sat, 18 Sep 2004 00:27:20 +0000
(
00:27
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 18 Sep 2004 00:27:20 +0000
(
00:27
+0000)
function, not just the CallGraph.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16388
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/IPA/CallGraph.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/IPA/CallGraph.cpp
b/lib/Analysis/IPA/CallGraph.cpp
index 8b46e5927461269540b756144b6e33dabe90e42e..ac926dc59a14a26bbda837ced98746c49b0875bb 100644
(file)
--- a/
lib/Analysis/IPA/CallGraph.cpp
+++ b/
lib/Analysis/IPA/CallGraph.cpp
@@
-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);
}