From 2859c49f7b229db4a37b7c10fab739dbc96922cd Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Fri, 20 Sep 2019 12:43:10 +0200 Subject: [PATCH] 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 --- src/gallium/state_trackers/clover/llvm/invocation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.30.2