[llvm-commits] [llvm] r41165 - /llvm/trunk/lib/VMCore/Verifier.cpp
Chris Lattner
sabre at nondot.org
Fri Aug 17 23:13:20 PDT 2007
Author: lattner
Date: Sat Aug 18 01:13:19 2007
New Revision: 41165
URL: http://llvm.org/viewvc/llvm-project?rev=41165&view=rev
Log:
use a nicer accessor.
Modified:
llvm/trunk/lib/VMCore/Verifier.cpp
Modified: llvm/trunk/lib/VMCore/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Verifier.cpp?rev=41165&r1=41164&r2=41165&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Verifier.cpp (original)
+++ llvm/trunk/lib/VMCore/Verifier.cpp Sat Aug 18 01:13:19 2007
@@ -347,7 +347,7 @@
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!",
More information about the llvm-commits
mailing list