aco: Use Builder reference in emit_copies_block.
authorTimur Kristóf <timur.kristof@gmail.com>
Wed, 1 Sep 2021 15:16:16 +0000 (17:16 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 3 Sep 2021 15:00:55 +0000 (15:00 +0000)
commit728ed892df118d00c20c3317803c3279f84d9676
tree98e2aa45f6a3de46523532000cf31eb1ee45b27b
parent46def1814e826d2a3d7e0c3b7b53c976e2c57d4f
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>
src/amd/compiler/aco_lower_to_cssa.cpp