summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGClass.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-03-07 15:12:56 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-03-07 15:12:56 +0000
commitf6bf62e2d0a08d05a6029d629e2164c8c1e8f655 (patch)
tree42f5a5e505e19c5c0c1b1edc75e46f0ca4391d99 /clang/lib/CodeGen/CGClass.cpp
parent65fe9377f08448d12c04a9fcdbd0d49fd6807ecd (diff)
downloadbcm5719-llvm-f6bf62e2d0a08d05a6029d629e2164c8c1e8f655.tar.gz
bcm5719-llvm-f6bf62e2d0a08d05a6029d629e2164c8c1e8f655.zip
[C++11] Replacing FunctionDecl iterators param_begin() and param_end() with iterator_range params(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203248
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
-rw-r--r--clang/lib/CodeGen/CGClass.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index 4c48afe0752..7add3c2a1a6 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/lib/CodeGen/CGClass.cpp
@@ -2195,11 +2195,9 @@ void CodeGenFunction::EmitLambdaDelegatingInvokeBody(const CXXMethodDecl *MD) {
CallArgs.add(RValue::get(ThisPtr), ThisType);
// Add the rest of the parameters.
- for (FunctionDecl::param_const_iterator I = MD->param_begin(),
- E = MD->param_end(); I != E; ++I) {
- ParmVarDecl *param = *I;
- EmitDelegateCallArg(CallArgs, param, param->getLocStart());
- }
+ for (auto Param : MD->params())
+ EmitDelegateCallArg(CallArgs, Param, Param->getLocStart());
+
const CXXMethodDecl *CallOp = Lambda->getLambdaCallOperator();
// For a generic lambda, find the corresponding call operator specialization
// to which the call to the static-invoker shall be forwarded.
OpenPOWER on IntegriCloud