remove pessimizing moves (reported by gcc 10)
authorNuno Lopes <nunoplopes@sapo.pt>
Thu, 31 Dec 2020 20:35:56 +0000 (20:35 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Thu, 31 Dec 2020 20:35:56 +0000 (20:35 +0000)
llvm/include/llvm/ExecutionEngine/Orc/Shared/RPCUtils.h

index 1c8b8e0..63db9d4 100644 (file)
@@ -1510,20 +1510,20 @@ public:
             Args...)) {
       detail::ResultTraits<typename Func::ReturnType>::consumeAbandoned(
           std::move(Result));
-      return std::move(Err);
+      return Err;
     }
 
     if (auto Err = this->C.send()) {
       detail::ResultTraits<typename Func::ReturnType>::consumeAbandoned(
           std::move(Result));
-      return std::move(Err);
+      return Err;
     }
 
     while (!ReceivedResponse) {
       if (auto Err = this->handleOne()) {
         detail::ResultTraits<typename Func::ReturnType>::consumeAbandoned(
             std::move(Result));
-        return std::move(Err);
+        return Err;
       }
     }