mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-16 08:08:01 +00:00
Use size function instead of manually calculating it.
llvm-svn: 194345
This commit is contained in:
parent
044bacb671
commit
8970e6f86a
@ -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 :
|
||||
|
Loading…
Reference in New Issue
Block a user