summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/Views/SchedulerStatistics.cpp
diff options
context:
space:
mode:
authorMark de Wever <koraq@xs4all.nl>2019-12-22 19:11:17 +0100
committerMark de Wever <koraq@xs4all.nl>2019-12-22 19:11:17 +0100
commit536c9a604e82f0c0284595344b8ab9dd601071cf (patch)
tree0241c4f83b9fa30a99438acd2a5192ccae63955a /llvm/tools/llvm-mca/Views/SchedulerStatistics.cpp
parente8d448ec255c7034cd00d1e0d1469eb6b31682ae (diff)
downloadbcm5719-llvm-536c9a604e82f0c0284595344b8ab9dd601071cf.tar.gz
bcm5719-llvm-536c9a604e82f0c0284595344b8ab9dd601071cf.zip
[Tools] Fixes -Wrange-loop-analysis warnings
This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall. Differential Revision: https://reviews.llvm.org/D71808
Diffstat (limited to 'llvm/tools/llvm-mca/Views/SchedulerStatistics.cpp')
-rw-r--r--llvm/tools/llvm-mca/Views/SchedulerStatistics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mca/Views/SchedulerStatistics.cpp b/llvm/tools/llvm-mca/Views/SchedulerStatistics.cpp
index bd0ba350ab6..7a341d4c207 100644
--- a/llvm/tools/llvm-mca/Views/SchedulerStatistics.cpp
+++ b/llvm/tools/llvm-mca/Views/SchedulerStatistics.cpp
@@ -107,7 +107,7 @@ void SchedulerStatistics::printSchedulerStats(raw_ostream &OS) const {
bool HasColors = OS.has_colors();
const auto It =
std::max_element(IssueWidthPerCycle.begin(), IssueWidthPerCycle.end());
- for (const std::pair<unsigned, unsigned> &Entry : IssueWidthPerCycle) {
+ for (const std::pair<const unsigned, unsigned> &Entry : IssueWidthPerCycle) {
unsigned NumIssued = Entry.first;
if (NumIssued == It->first && HasColors)
OS.changeColor(raw_ostream::SAVEDCOLOR, true, false);
OpenPOWER on IntegriCloud