mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 14:38:06 +02:00
aco: Don't std::move temporary object.
Fixes the following clang warning: mesa/src/amd/compiler/aco_optimizer.cpp:2928:15: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] ctx.uses = std::move(dead_code_analysis(program)); Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5228>
This commit is contained in:
parent
536339b0dd
commit
7b1bc460fd
1 changed files with 1 additions and 1 deletions
|
|
@ -2929,7 +2929,7 @@ void optimize(Program* program)
|
|||
label_instruction(ctx, block, instr);
|
||||
}
|
||||
|
||||
ctx.uses = std::move(dead_code_analysis(program));
|
||||
ctx.uses = dead_code_analysis(program);
|
||||
|
||||
/* 2. Combine v_mad, omod, clamp and propagate sgpr on VALU instructions */
|
||||
for (Block& block : program->blocks) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue