use a nicer accessor.
[oota-llvm.git] / lib / VMCore / Verifier.cpp
index ae27651ee5cb69d017c6733c28fbac6aaad1a46c..49f6abd08076a9be125432091292279b7b6b4ffb 100644 (file)
@@ -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!",