Use size function instead of manually calculating it.

llvm-svn: 194345
This commit is contained in:
Matt Arsenault 2013-11-10 03:18:50 +00:00
parent 044bacb671
commit 8970e6f86a

View File

@ -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 :