summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-31 02:24:20 +0000
committerChris Lattner <sabre@nondot.org>2009-08-31 02:24:20 +0000
commit4275cf2efad3d4312ba2a07881853ff3bf21bc26 (patch)
tree80ffcfc518fef41d0452ff9ef2b1c0e3c1b7278e /llvm
parentc6db3ee94b98c82692395495e85baacfc3e8ce98 (diff)
downloadbcm5719-llvm-4275cf2efad3d4312ba2a07881853ff3bf21bc26.tar.gz
bcm5719-llvm-4275cf2efad3d4312ba2a07881853ff3bf21bc26.zip
use an accessor instead of poking internals of a node.
llvm-svn: 80532
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Analysis/IPA/CallGraph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/IPA/CallGraph.cpp b/llvm/lib/Analysis/IPA/CallGraph.cpp
index 08687df4b5f..152add93efe 100644
--- a/llvm/lib/Analysis/IPA/CallGraph.cpp
+++ b/llvm/lib/Analysis/IPA/CallGraph.cpp
@@ -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
OpenPOWER on IntegriCloud