From a82e5825e0871f980bf640582ea6906d15448e27 Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Fri, 23 Dec 2022 10:42:29 -0500 Subject: [PATCH] [NFC][OpenMP] Fix compile warning caused by using `std::move` on a local object on a `return` statement --- .../plugins-nextgen/common/PluginInterface/PluginInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp index 9f52562..309e7e0 100644 --- a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp +++ b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp @@ -439,7 +439,7 @@ Error GenericDeviceTy::dataDelete(void *TgtPtr, TargetAllocTy Kind) { // Unregister deallocated pinned memory buffer if the type is host memory. if (Kind == TARGET_ALLOC_HOST) if (auto Err = unregisterHostPinnedMemoryBuffer(TgtPtr)) - return std::move(Err); + return Err; return Plugin::success(); } -- 2.7.4