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:
9c41077
)
Use size function instead of manually calculating it.
author
Matt Arsenault
<Matthew.Arsenault@amd.com>
Sun, 10 Nov 2013 03:18:50 +0000
(
03:18
+0000)
committer
Matt Arsenault
<Matthew.Arsenault@amd.com>
Sun, 10 Nov 2013 03:18:50 +0000
(
03:18
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194345
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/Lint.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/Lint.cpp
b/lib/Analysis/Lint.cpp
index 2c8fc0bba4149608337e9b513d80cab531274bf8..ec17f47acb86246d8b6c86e7ff951c83750308a8 100644
(file)
--- a/
lib/Analysis/Lint.cpp
+++ b/
lib/Analysis/Lint.cpp
@@
-207,7
+207,7
@@
void Lint::visitCallSite(CallSite CS) {
&I);
FunctionType *FT = F->getFunctionType();
- unsigned NumActualArgs =
unsigned(CS.arg_end()-CS.arg_begin()
);
+ unsigned NumActualArgs =
CS.arg_size(
);
Assert1(FT->isVarArg() ?
FT->getNumParams() <= NumActualArgs :