[llvm] r194345 - Use size function instead of manually calculating it.

Matt Arsenault Matthew.Arsenault at amd.com
Sat Nov 9 19:18:50 PST 2013


Author: arsenm
Date: Sat Nov  9 21:18:50 2013
New Revision: 194345

URL: http://llvm.org/viewvc/llvm-project?rev=194345&view=rev
Log:
Use size function instead of manually calculating it.

Modified:
    llvm/trunk/lib/Analysis/Lint.cpp

Modified: llvm/trunk/lib/Analysis/Lint.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/Lint.cpp?rev=194345&r1=194344&r2=194345&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/Lint.cpp (original)
+++ llvm/trunk/lib/Analysis/Lint.cpp Sat Nov  9 21:18:50 2013
@@ -207,7 +207,7 @@ void Lint::visitCallSite(CallSite CS) {
             &I);
 
     FunctionType *FT = F->getFunctionType();
-    unsigned NumActualArgs = unsigned(CS.arg_end()-CS.arg_begin());
+    unsigned NumActualArgs = CS.arg_size();
 
     Assert1(FT->isVarArg() ?
               FT->getNumParams() <= NumActualArgs :





More information about the llvm-commits mailing list