diff options
author | Kazu Hirata <kazu@google.com> | 2021-12-10 08:53:14 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-12-10 08:53:14 -0800 |
commit | 3dbcccab303a586791fb8bb2455dd15a7eda5477 (patch) | |
tree | 0b15e2198efe3e865297ec6697b75ca364034bd3 /llvm/lib/Support/DeltaAlgorithm.cpp | |
parent | 6a399bf4b3aa32a87fb04dd1deb05f0066810a05 (diff) | |
download | llvm-3dbcccab303a586791fb8bb2455dd15a7eda5477.zip llvm-3dbcccab303a586791fb8bb2455dd15a7eda5477.tar.gz llvm-3dbcccab303a586791fb8bb2455dd15a7eda5477.tar.bz2 |
[Support] Use range-based for loops (NFC)
Diffstat (limited to 'llvm/lib/Support/DeltaAlgorithm.cpp')
-rw-r--r-- | llvm/lib/Support/DeltaAlgorithm.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Support/DeltaAlgorithm.cpp b/llvm/lib/Support/DeltaAlgorithm.cpp index 6aee69f..a2017a1 100644 --- a/llvm/lib/Support/DeltaAlgorithm.cpp +++ b/llvm/lib/Support/DeltaAlgorithm.cpp @@ -57,9 +57,8 @@ DeltaAlgorithm::Delta(const changeset_ty &Changes, // Otherwise, partition the sets if possible; if not we are done. changesetlist_ty SplitSets; - for (changesetlist_ty::const_iterator it = Sets.begin(), - ie = Sets.end(); it != ie; ++it) - Split(*it, SplitSets); + for (const changeset_ty &Set : Sets) + Split(Set, SplitSets); if (SplitSets.size() == Sets.size()) return Changes; |