Followup for r356820 to fix the bots.
authorJuergen Ributzka <juergen@ributzka.de>
Fri, 22 Mar 2019 23:10:51 +0000 (23:10 +0000)
committerJuergen Ributzka <juergen@ributzka.de>
Fri, 22 Mar 2019 23:10:51 +0000 (23:10 +0000)
Try using a move constructor instead.

llvm-svn: 356823

llvm/lib/TextAPI/MachO/TextStub.cpp

index 735040b..799ebdc 100644 (file)
@@ -638,7 +638,7 @@ TextAPIReader::get(std::unique_ptr<MemoryBuffer> InputBuffer) {
   if (YAMLIn.error())
     return make_error<StringError>(Ctx.ErrorMessage, YAMLIn.error());
 
-  return File;
+  return std::move(File);
 }
 
 Error TextAPIWriter::writeToStream(raw_ostream &OS, const InterfaceFile &File) {