mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
use a nicer accessor.
llvm-svn: 41165
This commit is contained in:
parent
703bafa177
commit
6e6a77d83b
@ -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