projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1594b98
)
use a nicer accessor.
author
Chris Lattner
<sabre@nondot.org>
Sat, 18 Aug 2007 06:13:19 +0000
(06:13 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/lib/VMCore/Verifier.cpp
b/lib/VMCore/Verifier.cpp
index ae27651ee5cb69d017c6733c28fbac6aaad1a46c..49f6abd08076a9be125432091292279b7b6b4ffb 100644
(file)
--- 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!",