[llvm-commits] [llvm] r80532 - /llvm/trunk/lib/Analysis/IPA/CallGraph.cpp
Chris Lattner
sabre at nondot.org
Sun Aug 30 19:24:20 PDT 2009
Author: lattner
Date: Sun Aug 30 21:24:20 2009
New Revision: 80532
URL: http://llvm.org/viewvc/llvm-project?rev=80532&view=rev
Log:
use an accessor instead of poking internals of a node.
Modified:
llvm/trunk/lib/Analysis/IPA/CallGraph.cpp
Modified: llvm/trunk/lib/Analysis/IPA/CallGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/IPA/CallGraph.cpp?rev=80532&r1=80531&r2=80532&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/IPA/CallGraph.cpp (original)
+++ llvm/trunk/lib/Analysis/IPA/CallGraph.cpp Sun Aug 30 21:24:20 2009
@@ -196,7 +196,7 @@
// 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
More information about the llvm-commits
mailing list