summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-03-07 16:09:59 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-03-07 16:09:59 +0000
commitb2b8b1dc669c2a486e0841f6ac6aab6dc5cc6ec0 (patch)
tree52c666be558e1a81bba2452267c28c7b5f6562f2 /clang/lib/CodeGen/CGBlocks.cpp
parentbcc77b04bb75722f6acaa29a408d7f8dc1d0e170 (diff)
downloadbcm5719-llvm-b2b8b1dc669c2a486e0841f6ac6aab6dc5cc6ec0.tar.gz
bcm5719-llvm-b2b8b1dc669c2a486e0841f6ac6aab6dc5cc6ec0.zip
[C++11] Replacing BlockDecl 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: 203250
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index a75f341b3bf..86afa324895 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -1117,9 +1117,8 @@ CodeGenFunction::GenerateBlockFunction(GlobalDecl GD,
args.push_back(&selfDecl);
// Now add the rest of the parameters.
- for (BlockDecl::param_const_iterator i = blockDecl->param_begin(),
- e = blockDecl->param_end(); i != e; ++i)
- args.push_back(*i);
+ for (auto i : blockDecl->params())
+ args.push_back(i);
// Create the function declaration.
const FunctionProtoType *fnType = blockInfo.getBlockExpr()->getFunctionType();
OpenPOWER on IntegriCloud