mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Use size function instead of manually calculating it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194345 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9c410777d1
commit
20f1fe5c50
@ -207,7 +207,7 @@ void Lint::visitCallSite(CallSite CS) {
|
|||||||
&I);
|
&I);
|
||||||
|
|
||||||
FunctionType *FT = F->getFunctionType();
|
FunctionType *FT = F->getFunctionType();
|
||||||
unsigned NumActualArgs = unsigned(CS.arg_end()-CS.arg_begin());
|
unsigned NumActualArgs = CS.arg_size();
|
||||||
|
|
||||||
Assert1(FT->isVarArg() ?
|
Assert1(FT->isVarArg() ?
|
||||||
FT->getNumParams() <= NumActualArgs :
|
FT->getNumParams() <= NumActualArgs :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user