[llvm] r356823 - Followup for r356820 to fix the bots.

Juergen Ributzka via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 22 16:10:51 PDT 2019


Author: ributzka
Date: Fri Mar 22 16:10:51 2019
New Revision: 356823

URL: http://llvm.org/viewvc/llvm-project?rev=356823&view=rev
Log:
Followup for r356820 to fix the bots.

Try using a move constructor instead.

Modified:
    llvm/trunk/lib/TextAPI/MachO/TextStub.cpp

Modified: llvm/trunk/lib/TextAPI/MachO/TextStub.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TextAPI/MachO/TextStub.cpp?rev=356823&r1=356822&r2=356823&view=diff
==============================================================================
--- llvm/trunk/lib/TextAPI/MachO/TextStub.cpp (original)
+++ llvm/trunk/lib/TextAPI/MachO/TextStub.cpp Fri Mar 22 16:10:51 2019
@@ -638,7 +638,7 @@ TextAPIReader::get(std::unique_ptr<Memor
   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) {




More information about the llvm-commits mailing list