aco: Use correct reference type in for-range-loop.

Fixes a clang warning.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5228>
This commit is contained in:
Oschowa 2020-05-27 12:00:19 +02:00 committed by Marge Bot
parent 7b1bc460fd
commit 663e8cb4e6
1 changed files with 1 additions and 1 deletions

View File

@ -1257,7 +1257,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()) {