Module: Mesa Branch: master Commit: 663e8cb4e67f8b85186631c6a3719ed83da32151 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=663e8cb4e67f8b85186631c6a3719ed83da32151
Author: Oschowa <osch...@web.de> Date: Wed May 27 12:00:19 2020 +0200 aco: Use correct reference type in for-range-loop. Fixes a clang warning. Reviewed-by: Rhys Perry <pendingchao...@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoi...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5228> --- 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<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()) { _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit