Revert rGb6437b352db9 - "Fix gcc9 "moving a local object in a return statement preven...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 17 Jan 2020 16:04:10 +0000 (16:04 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 17 Jan 2020 16:04:10 +0000 (16:04 +0000)
Fix buildbots

llvm/include/llvm/ExecutionEngine/Orc/RPC/RPCUtils.h

index 6cf5612..ed09363 100644 (file)
@@ -1528,20 +1528,20 @@ public:
             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);
       }
     }