diff --git a/llvm/include/llvm/Support/TaskQueue.h b/llvm/include/llvm/Support/TaskQueue.h --- a/llvm/include/llvm/Support/TaskQueue.h +++ b/llvm/include/llvm/Support/TaskQueue.h @@ -98,7 +98,7 @@ IsTaskInFlight = true; } } - return std::move(F); + return F; } private: diff --git a/mlir/include/mlir/Parser.h b/mlir/include/mlir/Parser.h --- a/mlir/include/mlir/Parser.h +++ b/mlir/include/mlir/Parser.h @@ -67,7 +67,7 @@ // contain the operations inside of it. if (failed(op.verify())) return OwningOpRef(); - return std::move(opRef); + return opRef; } } // end namespace detail