From a5cf8da145c0f9bf70abaecc40ce7abfd73855c9 Mon Sep 17 00:00:00 2001 From: George Rimar Date: Sun, 12 Aug 2018 07:52:24 +0000 Subject: [PATCH] [LLF][ELF] - Simplify. NFC. llvm-svn: 339510 --- lld/ELF/CallGraphSort.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lld/ELF/CallGraphSort.cpp b/lld/ELF/CallGraphSort.cpp index 33ac159..6a8da0f 100644 --- a/lld/ELF/CallGraphSort.cpp +++ b/lld/ELF/CallGraphSort.cpp @@ -167,9 +167,9 @@ void CallGraphSort::groupClusters() { std::vector SortedSecs(Clusters.size()); std::vector SecToCluster(Clusters.size()); - for (int SI = 0, SE = Clusters.size(); SI != SE; ++SI) { - SortedSecs[SI] = SI; - SecToCluster[SI] = &Clusters[SI]; + for (size_t I = 0; I < Clusters.size(); ++I) { + SortedSecs[I] = I; + SecToCluster[I] = &Clusters[I]; } std::stable_sort(SortedSecs.begin(), SortedSecs.end(), [&](int A, int B) { -- 2.7.4