ProfileSummary.cpp - use auto const& iterator in for-range loop to avoid copies. NFCI.

This commit is contained in:
Simon Pilgrim 2020-09-21 16:28:10 +01:00
parent 96e52c1364
commit 53f1748c13
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ void ProfileSummary::printSummary(raw_ostream &OS) {
void ProfileSummary::printDetailedSummary(raw_ostream &OS) {
OS << "Detailed summary:\n";
for (auto Entry : DetailedSummary) {
for (const auto &Entry : DetailedSummary) {
OS << Entry.NumCounts << " blocks with count >= " << Entry.MinCount
<< " account for "
<< format("%0.6g", (float)Entry.Cutoff / Scale * 100)