use a nicer accessor.
authorChris Lattner <sabre@nondot.org>
Sat, 18 Aug 2007 06:13:19 +0000 (06:13 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 18 Aug 2007 06:13:19 +0000 (06:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41165 91177308-0d34-0410-b5e6-96231b3b80d8

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!",