summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitb12f2f3b6043fc5fdf5b22d12dc73a2ea100911b (patch)
tree29a6683d88dac2480f4cdc66f65c140dcbbdbb11 /llvm/lib/Analysis
parentba035bce210848d0e991bc97de1eadd5b35ee2f2 (diff)
downloadbcm5719-llvm-b12f2f3b6043fc5fdf5b22d12dc73a2ea100911b.tar.gz
bcm5719-llvm-b12f2f3b6043fc5fdf5b22d12dc73a2ea100911b.zip
Use size function instead of manually calculating it.
llvm-svn: 194345
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/Lint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/Lint.cpp b/llvm/lib/Analysis/Lint.cpp
index 2c8fc0bba41..ec17f47acb8 100644
--- a/llvm/lib/Analysis/Lint.cpp
+++ b/llvm/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 :
OpenPOWER on IntegriCloud