[lld] r306323 - Fix -Wpessimizing-move.
    Rui Ueyama via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Jun 26 12:52:01 PDT 2017
    
    
  
Author: ruiu
Date: Mon Jun 26 12:52:01 2017
New Revision: 306323
URL: http://llvm.org/viewvc/llvm-project?rev=306323&view=rev
Log:
Fix -Wpessimizing-move.
Modified:
    lld/trunk/COFF/DriverUtils.cpp
Modified: lld/trunk/COFF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/DriverUtils.cpp?rev=306323&r1=306322&r2=306323&view=diff
==============================================================================
--- lld/trunk/COFF/DriverUtils.cpp (original)
+++ lld/trunk/COFF/DriverUtils.cpp Mon Jun 26 12:52:01 2017
@@ -433,7 +433,7 @@ std::unique_ptr<MemoryBuffer> createMani
 
   // Copy the manifest data into the .res file.
   std::copy(Manifest.begin(), Manifest.end(), Buf);
-  return std::move(Res);
+  return Res;
 }
 
 void createSideBySideManifest() {
    
    
More information about the llvm-commits
mailing list