summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TextAPI/MachO/TextStub.cpp
diff options
context:
space:
mode:
authorJuergen Ributzka <juergen@ributzka.de>2019-03-22 23:10:51 +0000
committerJuergen Ributzka <juergen@ributzka.de>2019-03-22 23:10:51 +0000
commitb0ae52d814d7de99a06c45c8be43db7536434a94 (patch)
treed822e886cc3bc876b4fa898e06d2d8143890ef51 /llvm/lib/TextAPI/MachO/TextStub.cpp
parentd1c5b28c2aecd81c5746e733cbf74e82bf9266f0 (diff)
downloadbcm5719-llvm-b0ae52d814d7de99a06c45c8be43db7536434a94.tar.gz
bcm5719-llvm-b0ae52d814d7de99a06c45c8be43db7536434a94.zip
Followup for r356820 to fix the bots.
Try using a move constructor instead. llvm-svn: 356823
Diffstat (limited to 'llvm/lib/TextAPI/MachO/TextStub.cpp')
-rw-r--r--llvm/lib/TextAPI/MachO/TextStub.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/TextAPI/MachO/TextStub.cpp b/llvm/lib/TextAPI/MachO/TextStub.cpp
index 735040bc3bf..799ebdc883a 100644
--- a/llvm/lib/TextAPI/MachO/TextStub.cpp
+++ b/llvm/lib/TextAPI/MachO/TextStub.cpp
@@ -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) {
OpenPOWER on IntegriCloud