mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
use a nicer accessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41165 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1594b98836
commit
453eed147a
@ -347,7 +347,7 @@ void Verifier::verifyTypeSymbolTable(TypeSymbolTable &ST) {
|
||||
void Verifier::visitFunction(Function &F) {
|
||||
// Check function arguments.
|
||||
const FunctionType *FT = F.getFunctionType();
|
||||
unsigned NumArgs = F.getArgumentList().size();
|
||||
unsigned NumArgs = F.arg_size();
|
||||
|
||||
Assert2(FT->getNumParams() == NumArgs,
|
||||
"# formal arguments must match # of arguments for function type!",
|
||||
|
Loading…
Reference in New Issue
Block a user