From 8ae727ca0493e1171dc3e9688fd4769240ac7a4a Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Wed, 12 May 2021 18:44:35 +0300 Subject: [PATCH] lv2_obj::create: fix pessimizing move Could have been preventing copy elision. --- rpcs3/Emu/Cell/lv2/sys_sync.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_sync.h b/rpcs3/Emu/Cell/lv2/sys_sync.h index 2b72b3f6e9..0e239ccc05 100644 --- a/rpcs3/Emu/Cell/lv2/sys_sync.h +++ b/rpcs3/Emu/Cell/lv2/sys_sync.h @@ -282,7 +282,7 @@ public: return finalize_construct(); } - return std::move(result); + return result; })) { return error;