[llvm] 3a25280 - [COFF] Fix -Wredundant-move
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 3 08:39:53 PDT 2022
Author: Benjamin Kramer
Date: 2022-06-03T17:39:08+02:00
New Revision: 3a252806f41b04da021de26111106f1a67f501a6
URL: https://github.com/llvm/llvm-project/commit/3a252806f41b04da021de26111106f1a67f501a6
DIFF: https://github.com/llvm/llvm-project/commit/3a252806f41b04da021de26111106f1a67f501a6.diff
LOG: [COFF] Fix -Wredundant-move
Added:
Modified:
llvm/lib/Object/COFFObjectFile.cpp
Removed:
################################################################################
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() {
More information about the llvm-commits
mailing list