From b0ae52d814d7de99a06c45c8be43db7536434a94 Mon Sep 17 00:00:00 2001 From: Juergen Ributzka Date: Fri, 22 Mar 2019 23:10:51 +0000 Subject: [PATCH] Followup for r356820 to fix the bots. Try using a move constructor instead. llvm-svn: 356823 --- llvm/lib/TextAPI/MachO/TextStub.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/TextAPI/MachO/TextStub.cpp b/llvm/lib/TextAPI/MachO/TextStub.cpp index 735040b..799ebdc 100644 --- a/llvm/lib/TextAPI/MachO/TextStub.cpp +++ b/llvm/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) { -- 2.7.4