1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

Fix a builtbot failure after 3ed04f93e30121867a813a220452b97aebeb1730.

This commit is contained in:
Alexey Lapshin 2020-09-24 15:07:18 +03:00
parent 764ab31df1
commit 0d7df5ad90

View File

@ -111,7 +111,7 @@ extractSections(const object::MachOObjectFile::LoadCommandInfo &LoadCmd,
assert(S.NReloc == S.Relocations.size() &&
"Incorrect number of relocations");
}
return Sections;
return std::move(Sections);
}
Error MachOReader::readLoadCommands(Object &O) const {
@ -334,7 +334,7 @@ Expected<std::unique_ptr<Object>> MachOReader::create() const {
readFunctionStartsData(*Obj);
readIndirectSymbolTable(*Obj);
readSwiftVersion(*Obj);
return Obj;
return std::move(Obj);
}
} // end namespace macho