aco: Use Builder reference in emit_copies_block.

Found while running with libstdc++ debug mode.
Fixes the following:

Error: attempt to copy-construct an iterator from a singular iterator.

Cc: mesa-stable
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Tony Wasserka <tony.wasserka@gmx.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12682>
This commit is contained in:
Timur Kristóf 2021-09-01 17:16:16 +02:00 committed by Marge Bot
parent 46def1814e
commit 728ed892df
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ struct ltg_node {
/* emit the copies in an order that does not
* create interferences within a merge-set */
void
emit_copies_block(Builder bld, std::map<uint32_t, ltg_node>& ltg, RegType type)
emit_copies_block(Builder& bld, std::map<uint32_t, ltg_node>& ltg, RegType type)
{
auto&& it = ltg.begin();
while (it != ltg.end()) {