From: Oschowa Date: Wed, 27 May 2020 10:00:19 +0000 (+0200) Subject: aco: Use correct reference type in for-range-loop. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=663e8cb4e67f8b85186631c6a3719ed83da32151;p=mesa.git aco: Use correct reference type in for-range-loop. Fixes a clang warning. Reviewed-by: Rhys Perry Reviewed-by: Samuel Pitoiset Part-of: --- diff --git a/src/amd/compiler/aco_lower_to_hw_instr.cpp b/src/amd/compiler/aco_lower_to_hw_instr.cpp index 4383b198890..05790366a71 100644 --- a/src/amd/compiler/aco_lower_to_hw_instr.cpp +++ b/src/amd/compiler/aco_lower_to_hw_instr.cpp @@ -1257,7 +1257,7 @@ void handle_operands(std::map& 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& op : copy_map) + for (const std::pair& op : copy_map) largest = MAX2(largest, op.second.bytes); while (!copy_map.empty()) {