summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-08-27 04:26:49 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-08-27 04:26:49 +0000
commit43575d9cd09bfe3446185372d417593247449cce (patch)
tree0e04cb45da6f46728d5371836133ca008d6b35b6 /lib
parent4ec57134d2ac6dfbb8720b3bf2630fdb2805a594 (diff)
aco: Use correct reference type in for-range-loop.
From Oschowa 663e8cb4e67f8b85186631c6a3719ed83da32151 in mainline mesa reduces clang warnings
Diffstat (limited to 'lib')
-rw-r--r--lib/mesa/src/amd/compiler/aco_lower_to_hw_instr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mesa/src/amd/compiler/aco_lower_to_hw_instr.cpp b/lib/mesa/src/amd/compiler/aco_lower_to_hw_instr.cpp
index 6f051200b..6845b0d28 100644
--- a/lib/mesa/src/amd/compiler/aco_lower_to_hw_instr.cpp
+++ b/lib/mesa/src/amd/compiler/aco_lower_to_hw_instr.cpp
@@ -1058,7 +1058,7 @@ void handle_operands(std::map<PhysReg, copy_operation>& copy_map, lower_context*
/* all target regs are needed as operand somewhere which means, all entries are part of a cycle */
unsigned largest = 0;
- for (const std::pair<PhysReg, copy_operation>& op : copy_map)
+ for (const std::pair<const PhysReg, copy_operation>& op : copy_map)
largest = MAX2(largest, op.second.bytes);
while (!copy_map.empty()) {