aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/DeltaAlgorithm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/DeltaAlgorithm.cpp')
-rw-r--r--llvm/lib/Support/DeltaAlgorithm.cpp5
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;