diff options
author | Chris Lattner <sabre@nondot.org> | 2002-12-06 06:40:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-12-06 06:40:00 +0000 |
commit | 196cee2dba10970c8021668cae99e0e423b12e37 (patch) | |
tree | 50eaa24c605e43e7eea02dd6f7408c4eada45b82 | |
parent | 28c2d409a5551b117da97defe168620ab525bfe0 (diff) | |
download | external_llvm-196cee2dba10970c8021668cae99e0e423b12e37.zip external_llvm-196cee2dba10970c8021668cae99e0e423b12e37.tar.gz external_llvm-196cee2dba10970c8021668cae99e0e423b12e37.tar.bz2 |
Make sure to print indirect node again
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4943 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/CallGraph.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/llvm/Analysis/CallGraph.h b/include/llvm/Analysis/CallGraph.h index 2b0faa2..fde7c82 100644 --- a/include/llvm/Analysis/CallGraph.h +++ b/include/llvm/Analysis/CallGraph.h @@ -253,9 +253,7 @@ template<> struct GraphTraits<CallGraph*> : public GraphTraits<CallGraphNode*> { // nodes_iterator/begin/end - Allow iteration over all nodes in the graph typedef mapped_iterator<CallGraph::iterator, DerefFun> nodes_iterator; static nodes_iterator nodes_begin(CallGraph *CG) { - CallGraph::iterator I = CG->begin(); - ++I; - return map_iterator(I, DerefFun(CGdereference)); + return map_iterator(CG->begin(), DerefFun(CGdereference)); } static nodes_iterator nodes_end (CallGraph *CG) { return map_iterator(CG->end(), DerefFun(CGdereference)); |