summaryrefslogtreecommitdiff
path: root/lib/Analysis/IPA
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
commit2adb8306e2256a4d1bef8f21ebb6dba55a108a88 (patch)
treed0aa80f6b060d4a7e970c43f807aa45b38da6cbe /lib/Analysis/IPA
parentb0fc781115d113b18d72b83bdd5228edccb972b1 (diff)
downloadllvm-2adb8306e2256a4d1bef8f21ebb6dba55a108a88.tar.gz
llvm-2adb8306e2256a4d1bef8f21ebb6dba55a108a88.tar.bz2
llvm-2adb8306e2256a4d1bef8f21ebb6dba55a108a88.tar.xz
use an accessor instead of poking internals of a node.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80532 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA')
-rw-r--r--lib/Analysis/IPA/CallGraph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp
index 08687df4b5..152add93ef 100644
--- a/lib/Analysis/IPA/CallGraph.cpp
+++ b/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