diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-07 16:09:59 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-07 16:09:59 +0000 |
| commit | be7279367731c56ba8612edadcfdb7454029dbfc (patch) | |
| tree | a4b4e9d5698ce4f2a2002adf4679be6e579f3f25 /lib/CodeGen/CGBlocks.cpp | |
| parent | 126b7b996cc7254f5b0c2872734a7d17ebebfacd (diff) | |
| download | clang-be7279367731c56ba8612edadcfdb7454029dbfc.tar.gz clang-be7279367731c56ba8612edadcfdb7454029dbfc.tar.bz2 clang-be7279367731c56ba8612edadcfdb7454029dbfc.tar.xz | |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203250 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
| -rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index a75f341b3b..86afa32489 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/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(); |
