summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-03-07 17:50:17 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-03-07 17:50:17 +0000
commitecb8277062c21a62d0a2fc689088eda62d19ddbb (patch)
tree0c5fd26269be74e2049f26839fdd400071df10c7 /lib/CodeGen/CGCall.cpp
parent77e5210c205aa552d50ad51fdba72fb6dda7070e (diff)
downloadclang-ecb8277062c21a62d0a2fc689088eda62d19ddbb.tar.gz
clang-ecb8277062c21a62d0a2fc689088eda62d19ddbb.tar.bz2
clang-ecb8277062c21a62d0a2fc689088eda62d19ddbb.tar.xz
[C++11] Replacing ObjCMethodDecl iterators param_begin() and param_end() with iterator_range params(). Updating all of the usages of the iterators with range-based for loops.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203255 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
-rw-r--r--lib/CodeGen/CGCall.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp
index 860c871d29..133a692f4c 100644
--- a/lib/CodeGen/CGCall.cpp
+++ b/lib/CodeGen/CGCall.cpp
@@ -318,9 +318,8 @@ CodeGenTypes::arrangeObjCMessageSendSignature(const ObjCMethodDecl *MD,
argTys.push_back(Context.getCanonicalParamType(receiverType));
argTys.push_back(Context.getCanonicalParamType(Context.getObjCSelType()));
// FIXME: Kill copy?
- for (ObjCMethodDecl::param_const_iterator i = MD->param_begin(),
- e = MD->param_end(); i != e; ++i) {
- argTys.push_back(Context.getCanonicalParamType((*i)->getType()));
+ for (const auto *I : MD->params()) {
+ argTys.push_back(Context.getCanonicalParamType(I->getType()));
}
FunctionType::ExtInfo einfo;