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