From 663e8cb4e67f8b85186631c6a3719ed83da32151 Mon Sep 17 00:00:00 2001 From: Oschowa Date: Wed, 27 May 2020 12:00:19 +0200 Subject: [PATCH] aco: Use correct reference type in for-range-loop. Fixes a clang warning. Reviewed-by: Rhys Perry Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/compiler/aco_lower_to_hw_instr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) { -- 2.30.2