From: Chris Lattner Date: Fri, 6 Dec 2002 06:40:00 +0000 (+0000) Subject: Make sure to print indirect node again X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=196cee2dba10970c8021668cae99e0e423b12e37;p=oota-llvm.git Make sure to print indirect node again git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4943 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/CallGraph.h b/include/llvm/Analysis/CallGraph.h index 2b0faa23827..fde7c82abbe 100644 --- a/include/llvm/Analysis/CallGraph.h +++ b/include/llvm/Analysis/CallGraph.h @@ -253,9 +253,7 @@ template<> struct GraphTraits : public GraphTraits { // nodes_iterator/begin/end - Allow iteration over all nodes in the graph typedef mapped_iterator 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));