[lld] r322365 - Attempt to fix FreeBSD build broken by the previous commit

Pavel Labath via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 12 02:09:10 PST 2018


Author: labath
Date: Fri Jan 12 02:09:10 2018
New Revision: 322365

URL: http://llvm.org/viewvc/llvm-project?rev=322365&view=rev
Log:
Attempt to fix FreeBSD build broken by the previous commit

The compiler could not find the conversion from
unique_ptr<WritableMemoryBuffer> to unique_ptr<MemoryBuffer>. This will
hopefully help it along.

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=322365&r1=322364&r2=322365&view=diff
==============================================================================
--- lld/trunk/COFF/DriverUtils.cpp (original)
+++ lld/trunk/COFF/DriverUtils.cpp Fri Jan 12 02:09:10 2018
@@ -474,7 +474,7 @@ std::unique_ptr<MemoryBuffer> createMani
 
   // Copy the manifest data into the .res file.
   std::copy(Manifest.begin(), Manifest.end(), Buf);
-  return Res;
+  return std::move(Res);
 }
 
 void createSideBySideManifest() {




More information about the llvm-commits mailing list