[llvm] 0672d5d - [ORC] Fix missing std::move.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 15 04:43:18 PDT 2021
Author: Lang Hames
Date: 2021-06-15T21:42:58+10:00
New Revision: 0672d5d104defe4221c49d5d35cba879adaa6321
URL: https://github.com/llvm/llvm-project/commit/0672d5d104defe4221c49d5d35cba879adaa6321
DIFF: https://github.com/llvm/llvm-project/commit/0672d5d104defe4221c49d5d35cba879adaa6321.diff
LOG: [ORC] Fix missing std::move.
Added:
Modified:
llvm/include/llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h b/llvm/include/llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h
index 3385b7ab1062..4959786f10e5 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h
@@ -182,7 +182,7 @@ serializeViaSPSToWrapperFunctionResult(const ArgTs &...Args) {
return make_error<StringError>(
"Error serializing arguments to blob in call",
inconvertibleErrorCode());
- return Result;
+ return std::move(Result);
}
template <typename RetT> class WrapperFunctionHandlerCaller {
More information about the llvm-commits
mailing list