diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-17 17:22:27 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-17 17:22:27 +0000 |
| commit | 52fa036b2ec930e88a23db731b194ef1e53114d6 (patch) | |
| tree | a66f231f669f32992d2a7979c16a40d6928244de /lib/CodeGen/CGCall.cpp | |
| parent | 930c249394a5deeb6ccd389cd84f3c51ffa21d61 (diff) | |
| download | clang-52fa036b2ec930e88a23db731b194ef1e53114d6.tar.gz clang-52fa036b2ec930e88a23db731b194ef1e53114d6.tar.bz2 clang-52fa036b2ec930e88a23db731b194ef1e53114d6.tar.xz | |
[C++11] Replacing CallArgList writeback iterators with iterator_range writebacks(). Updating all of the usages of the iterators with range-based for loops, and removing the no-longer-needed iterator versions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204062 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
| -rw-r--r-- | lib/CodeGen/CGCall.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp index a550abfa9d..c068a11ad6 100644 --- a/lib/CodeGen/CGCall.cpp +++ b/lib/CodeGen/CGCall.cpp @@ -2015,9 +2015,8 @@ static void emitWriteback(CodeGenFunction &CGF, static void emitWritebacks(CodeGenFunction &CGF, const CallArgList &args) { - for (CallArgList::writeback_iterator - i = args.writeback_begin(), e = args.writeback_end(); i != e; ++i) - emitWriteback(CGF, *i); + for (const auto &I : args.writebacks()) + emitWriteback(CGF, I); } static void deactivateArgCleanupsBeforeCall(CodeGenFunction &CGF, |
