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>
/* 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()) {