[llvm-commits] CVS: llvm/lib/Analysis/IPA/CallGraph.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Sep 17 17:27:33 PDT 2004



Changes in directory llvm/lib/Analysis/IPA:

CallGraph.cpp updated: 1.42 -> 1.43
---
Log message:

When changing a function, make sure to update the CallGraphNode for the 
function, not just the CallGraph.


---
Diffs of the changes:  (+1 -0)

Index: llvm/lib/Analysis/IPA/CallGraph.cpp
diff -u llvm/lib/Analysis/IPA/CallGraph.cpp:1.42 llvm/lib/Analysis/IPA/CallGraph.cpp:1.43
--- llvm/lib/Analysis/IPA/CallGraph.cpp:1.42	Fri Sep 17 19:22:13 2004
+++ llvm/lib/Analysis/IPA/CallGraph.cpp	Fri Sep 17 19:27:20 2004
@@ -190,6 +190,7 @@
   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);
 }
 






More information about the llvm-commits mailing list