From 3a252806f41b04da021de26111106f1a67f501a6 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 3 Jun 2022 17:39:08 +0200 Subject: [PATCH] [COFF] Fix -Wredundant-move --- llvm/lib/Object/COFFObjectFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp index 65166b3710a0..fe8fab23e54a 100644 --- a/llvm/lib/Object/COFFObjectFile.cpp +++ b/llvm/lib/Object/COFFObjectFile.cpp @@ -786,7 +786,7 @@ static Error ignoreStrippedErrors(Error E) { consumeError(std::move(E)); return Error::success(); } - return std::move(E); + return E; } Error COFFObjectFile::initialize() {