aco: Use correct reference type in for-range-loop.
From Oschowa 663e8cb4e67f8b85186631c6a3719ed83da32151 in mainline mesa reduces clang warnings
This commit is contained in:
parent
3d26db0194
commit
33e8c1dc61
@ -1058,7 +1058,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 */
|
/* all target regs are needed as operand somewhere which means, all entries are part of a cycle */
|
||||||
unsigned largest = 0;
|
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);
|
largest = MAX2(largest, op.second.bytes);
|
||||||
|
|
||||||
while (!copy_map.empty()) {
|
while (!copy_map.empty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user