From: Juergen Ributzka Date: Fri, 22 Mar 2019 23:10:51 +0000 (+0000) Subject: Followup for r356820 to fix the bots. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3637528865af226a176e776e062edd0f5fa8349;p=llvm Followup for r356820 to fix the bots. Try using a move constructor instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356823 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/TextAPI/MachO/TextStub.cpp b/lib/TextAPI/MachO/TextStub.cpp index 735040bc3bf..799ebdc883a 100644 --- a/lib/TextAPI/MachO/TextStub.cpp +++ b/lib/TextAPI/MachO/TextStub.cpp @@ -638,7 +638,7 @@ TextAPIReader::get(std::unique_ptr InputBuffer) { if (YAMLIn.error()) return make_error(Ctx.ErrorMessage, YAMLIn.error()); - return File; + return std::move(File); } Error TextAPIWriter::writeToStream(raw_ostream &OS, const InterfaceFile &File) {