diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-31 02:24:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-31 02:24:20 +0000 |
commit | 7d7776f7adca3f51d05c3bbfbacaf65a5ae5167f (patch) | |
tree | d0aa80f6b060d4a7e970c43f807aa45b38da6cbe /lib/Analysis/IPA/CallGraph.cpp | |
parent | 7032b5cbb5282c844008e780c7bbdddf8f8cf096 (diff) | |
download | external_llvm-7d7776f7adca3f51d05c3bbfbacaf65a5ae5167f.zip external_llvm-7d7776f7adca3f51d05c3bbfbacaf65a5ae5167f.tar.gz external_llvm-7d7776f7adca3f51d05c3bbfbacaf65a5ae5167f.tar.bz2 |
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/CallGraph.cpp')
-rw-r--r-- | lib/Analysis/IPA/CallGraph.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp index 08687df..152add9 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 |