[Openmp-commits] [openmp] a82e582 - [NFC][OpenMP] Fix compile warning caused by using `std::move` on a local object on a `return` statement
Shilei Tian via Openmp-commits
openmp-commits at lists.llvm.org
Fri Dec 23 07:43:22 PST 2022
Author: Shilei Tian
Date: 2022-12-23T10:42:29-05:00
New Revision: a82e5825e0871f980bf640582ea6906d15448e27
URL: https://github.com/llvm/llvm-project/commit/a82e5825e0871f980bf640582ea6906d15448e27
DIFF: https://github.com/llvm/llvm-project/commit/a82e5825e0871f980bf640582ea6906d15448e27.diff
LOG: [NFC][OpenMP] Fix compile warning caused by using `std::move` on a local object on a `return` statement
Added:
Modified:
openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
Removed:
################################################################################
diff --git a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
index 9f52562dc9571..309e7e0c32892 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();
}
More information about the Openmp-commits
mailing list