[clang] 88aac16 - [LinkerWrapper] Fix -Wpessimizing-move
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 11 11:53:12 PST 2022
Author: Fangrui Song
Date: 2022-11-11T11:53:06-08:00
New Revision: 88aac163241ac8eaec5274b4ead0107aeb1102b3
URL: https://github.com/llvm/llvm-project/commit/88aac163241ac8eaec5274b4ead0107aeb1102b3
DIFF: https://github.com/llvm/llvm-project/commit/88aac163241ac8eaec5274b4ead0107aeb1102b3.diff
LOG: [LinkerWrapper] Fix -Wpessimizing-move
Added:
Modified:
clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
Removed:
################################################################################
diff --git a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
index 42fde3d790fb..500f5fdcecae 100644
--- a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
+++ b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
@@ -1156,7 +1156,7 @@ linkAndWrapDeviceFiles(SmallVectorImpl<OffloadFile> &LinkerInputFiles,
// First link and remove all the input files containing bitcode.
SmallVector<StringRef> InputFiles;
if (Error Err = linkBitcodeFiles(Input, InputFiles, LinkerArgs))
- return std::move(Err);
+ return Err;
// Write any remaining device inputs to an output file for the linker.
for (const OffloadFile &File : Input) {
More information about the cfe-commits
mailing list