From: Karol Herbst Date: Fri, 20 Sep 2019 10:43:10 +0000 (+0200) Subject: clover/llvm: remove harmful std::move call X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2859c49f7b229db4a37b7c10fab739dbc96922cd;p=mesa.git clover/llvm: remove harmful std::move call both clang and gcc warn with: "moving a local object in a return statement prevents copy elision" Signed-off-by: Karol Herbst Reviewed-by: Pierre Moreau --- diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index d71ddf8b01b..bef334c2d63 100644 --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp @@ -376,7 +376,7 @@ namespace { throw build_error(); } - return std::move(mod); + return mod; } }