From 907d4e754e3180b2ce2bb56ab6aefaac11338ced Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 19 Apr 2021 11:49:35 +0100 Subject: [PATCH] [llvm-exegesis] Analysis.cpp - use for-range loop. NFCI. --- llvm/tools/llvm-exegesis/lib/Analysis.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/tools/llvm-exegesis/lib/Analysis.cpp b/llvm/tools/llvm-exegesis/lib/Analysis.cpp index a1f576d..087100d 100644 --- a/llvm/tools/llvm-exegesis/lib/Analysis.cpp +++ b/llvm/tools/llvm-exegesis/lib/Analysis.cpp @@ -198,9 +198,8 @@ Error Analysis::run(raw_ostream &OS) const { OS << "\n"; // Write the points. - const auto &Clusters = Clustering_.getValidClusters(); - for (size_t I = 0, E = Clusters.size(); I < E; ++I) { - for (const size_t PointId : Clusters[I].PointIndices) { + for (const auto &ClusterIt : Clustering_.getValidClusters()) { + for (const size_t PointId : ClusterIt.PointIndices) { printInstructionRowCsv(PointId, OS); } OS << "\n\n"; -- 2.7.4