use an accessor instead of poking internals of a node.
authorChris Lattner <sabre@nondot.org>
Mon, 31 Aug 2009 02:24:20 +0000 (02:24 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 31 Aug 2009 02:24:20 +0000 (02:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80532 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/IPA/CallGraph.cpp

index 08687df4b5f34022b2623f69aecbaf767ba91771..152add93efea148f6e1697c5c96307833c0aa6b7 100644 (file)
@@ -196,7 +196,7 @@ void CallGraph::dump() const {
 // 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