From 3dbcccab303a586791fb8bb2455dd15a7eda5477 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 10 Dec 2021 08:53:14 -0800 Subject: [Support] Use range-based for loops (NFC) --- llvm/lib/Support/DeltaAlgorithm.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Support/DeltaAlgorithm.cpp') 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; -- cgit v1.1