[LLF][ELF] - Simplify. NFC.

llvm-svn: 339510
This commit is contained in:
George Rimar 2018-08-12 07:52:24 +00:00
parent 60177f1aee
commit a5cf8da145
1 changed files with 3 additions and 3 deletions

View File

@ -167,9 +167,9 @@ void CallGraphSort::groupClusters() {
std::vector<int> SortedSecs(Clusters.size());
std::vector<Cluster *> 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) {