From: Chris Lattner Date: Sat, 21 Feb 2004 22:27:31 +0000 (+0000) Subject: Use handy method X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5171115cf3b03e05cf2ffd905800f9275c846787;p=oota-llvm.git Use handy method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11692 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/DataStructure/Printer.cpp b/lib/Analysis/DataStructure/Printer.cpp index a5cb4da0b1b..e25bc4c4326 100644 --- a/lib/Analysis/DataStructure/Printer.cpp +++ b/lib/Analysis/DataStructure/Printer.cpp @@ -249,7 +249,7 @@ static void printCollection(const Collection &C, std::ostream &O, << Gr.getGraphSize() << "+" << NumCalls << "]\n"; } - unsigned GraphSize = std::distance(Gr.node_begin(), Gr.node_end()); + unsigned GraphSize = Gr.getGraphSize(); if (MaxGraphSize < GraphSize) MaxGraphSize = GraphSize; for (DSGraph::node_iterator NI = Gr.node_begin(), E = Gr.node_end();