]> granicus.if.org Git - llvm/commitdiff
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356823 91177308-0d34-0410-b5e6-96231b3b80d8

lib/TextAPI/MachO/TextStub.cpp

index 735040bc3bf06049af7c028bd6bdee06b3681bb8..799ebdc883abc8f22ab897e5c66570a1b02efea2 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) {