projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1c5b28
)
Followup for r356820 to fix the bots.
author
Juergen Ributzka
<juergen@ributzka.de>
Fri, 22 Mar 2019 23:10:51 +0000
(23:10 +0000)
committer
Juergen Ributzka
<juergen@ributzka.de>
Fri, 22 Mar 2019 23:10:51 +0000
(23:10 +0000)
Try using a move constructor instead.
llvm-svn: 356823
llvm/lib/TextAPI/MachO/TextStub.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/TextAPI/MachO/TextStub.cpp
b/llvm/lib/TextAPI/MachO/TextStub.cpp
index
735040b
..
799ebdc
100644
(file)
--- 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) {