diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-06-24 05:33:44 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-06-24 05:33:44 +0000 |
commit | 21f6189c2992d9afdd3793f8d8cdc71757d7038f (patch) | |
tree | f55823573ba88964295cb8f2a09a155c1de3acc6 /include/clang/CodeGen | |
parent | ba5c7ce848b313a3ed284dad37e49bb77f010811 (diff) |
Use even more ArrayRefs
No functional change is intended, just a small refactoring.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273650 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/CodeGen')
-rw-r--r-- | include/clang/CodeGen/CGFunctionInfo.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/clang/CodeGen/CGFunctionInfo.h b/include/clang/CodeGen/CGFunctionInfo.h index 699b005f5a..8dd6ad1c21 100644 --- a/include/clang/CodeGen/CGFunctionInfo.h +++ b/include/clang/CodeGen/CGFunctionInfo.h @@ -400,10 +400,10 @@ public: const FunctionDecl *FD) { if (!prototype->isVariadic()) return All; if (FD) - additional += std::count_if(FD->param_begin(), FD->param_end(), - [](const ParmVarDecl *PVD) { - return PVD->hasAttr<PassObjectSizeAttr>(); - }); + additional += + llvm::count_if(FD->parameters(), [](const ParmVarDecl *PVD) { + return PVD->hasAttr<PassObjectSizeAttr>(); + }); return RequiredArgs(prototype->getNumParams() + additional); } |