diff options
author | Chris Lattner <sabre@nondot.org> | 2007-08-18 06:13:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-08-18 06:13:19 +0000 |
commit | 453eed147ad009f4608197928a3ed8ea7e67a78d (patch) | |
tree | 4265793270b53d6ffe15e036dade9288e5a7f038 /lib | |
parent | 1594b9883673d8048e3f0b79575ad2140fbb6b3c (diff) | |
download | external_llvm-453eed147ad009f4608197928a3ed8ea7e67a78d.zip external_llvm-453eed147ad009f4608197928a3ed8ea7e67a78d.tar.gz external_llvm-453eed147ad009f4608197928a3ed8ea7e67a78d.tar.bz2 |
use a nicer accessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41165 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/Verifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index ae27651..49f6abd 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -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!", |