aco: Don't std::move temporary object.
authorOschowa <oschowa@web.de>
Fri, 22 May 2020 10:52:05 +0000 (12:52 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 2 Jun 2020 21:31:17 +0000 (21:31 +0000)
commit7b1bc460fd6ae9bf5efeca62227bb05e0c50ee15
tree0b63be610e9451c612652ec96d4ed17cf8f0149c
parent536339b0dda33241d21a0e045681419ca46fc812
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>
src/amd/compiler/aco_optimizer.cpp