diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Support/DeltaAlgorithm.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/lib/Support/DeltaAlgorithm.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/llvm-project/llvm/lib/Support/DeltaAlgorithm.cpp b/contrib/llvm-project/llvm/lib/Support/DeltaAlgorithm.cpp index 6aee69f43405..a2017a10ab3f 100644 --- a/contrib/llvm-project/llvm/lib/Support/DeltaAlgorithm.cpp +++ b/contrib/llvm-project/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; |