[llvm] d1b32f3 - Revert rGb6437b352db9 - "Fix gcc9 "moving a local object in a return statement prevents copy elision" Wpessimizing-move warnings."
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 17 08:04:52 PST 2020
Author: Simon Pilgrim
Date: 2020-01-17T16:04:10Z
New Revision: d1b32f328e4a363a0883cdc9ca92d0df3ce3fbf3
URL: https://github.com/llvm/llvm-project/commit/d1b32f328e4a363a0883cdc9ca92d0df3ce3fbf3
DIFF: https://github.com/llvm/llvm-project/commit/d1b32f328e4a363a0883cdc9ca92d0df3ce3fbf3.diff
LOG: Revert rGb6437b352db9 - "Fix gcc9 "moving a local object in a return statement prevents copy elision" Wpessimizing-move warnings."
Fix buildbots
Added:
Modified:
llvm/include/llvm/ExecutionEngine/Orc/RPC/RPCUtils.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/RPC/RPCUtils.h b/llvm/include/llvm/ExecutionEngine/Orc/RPC/RPCUtils.h
index 6cf5612af8dc..ed09363dcecc 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/RPC/RPCUtils.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/RPC/RPCUtils.h
@@ -1528,20 +1528,20 @@ class SingleThreadedRPCEndpoint
Args...)) {
detail::ResultTraits<typename Func::ReturnType>::consumeAbandoned(
std::move(Result));
- return Err;
+ return std::move(Err);
}
if (auto Err = this->C.send()) {
detail::ResultTraits<typename Func::ReturnType>::consumeAbandoned(
std::move(Result));
- return Err;
+ return std::move(Err);
}
while (!ReceivedResponse) {
if (auto Err = this->handleOne()) {
detail::ResultTraits<typename Func::ReturnType>::consumeAbandoned(
std::move(Result));
- return Err;
+ return std::move(Err);
}
}
More information about the llvm-commits
mailing list