Change two unnecessary uses of llvm::size(C) to C.size()
authorFangrui Song <maskray@google.com>
Tue, 6 Aug 2019 10:24:36 +0000 (10:24 +0000)
committerFangrui Song <maskray@google.com>
Tue, 6 Aug 2019 10:24:36 +0000 (10:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368011 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/LazyCallGraph.cpp

index 797fcf516429db0e490222ce239d51dcebb017b1..08d6e76ea0363649f108ade38684e0d8ddb8fe89 100644 (file)
@@ -1751,16 +1751,14 @@ static void printNode(raw_ostream &OS, LazyCallGraph::Node &N) {
 }
 
 static void printSCC(raw_ostream &OS, LazyCallGraph::SCC &C) {
-  ptrdiff_t Size = size(C);
-  OS << "    SCC with " << Size << " functions:\n";
+  OS << "    SCC with " << C.size() << " functions:\n";
 
   for (LazyCallGraph::Node &N : C)
     OS << "      " << N.getFunction().getName() << "\n";
 }
 
 static void printRefSCC(raw_ostream &OS, LazyCallGraph::RefSCC &C) {
-  ptrdiff_t Size = size(C);
-  OS << "  RefSCC with " << Size << " call SCCs:\n";
+  OS << "  RefSCC with " << C.size() << " call SCCs:\n";
 
   for (LazyCallGraph::SCC &InnerC : C)
     printSCC(OS, InnerC);