aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-11-10 03:18:50 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-11-10 03:18:50 +0000
commit20f1fe5c50c1a8ea69e635b4928c7f46e10c8cac (patch)
treec4cfe6141126bc3df1e5f37c6d92bb60a3a83653 /lib/Analysis
parent9c410777d16818d207d8da280a75875e716b1746 (diff)
downloadexternal_llvm-20f1fe5c50c1a8ea69e635b4928c7f46e10c8cac.zip
external_llvm-20f1fe5c50c1a8ea69e635b4928c7f46e10c8cac.tar.gz
external_llvm-20f1fe5c50c1a8ea69e635b4928c7f46e10c8cac.tar.bz2
Use size function instead of manually calculating it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/Lint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/Lint.cpp b/lib/Analysis/Lint.cpp
index 2c8fc0b..ec17f47 100644
--- 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 :