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) {


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to