[llvm] 4da6927 - Fix a builtbot failure after 3ed04f93e30121867a813a220452b97aebeb1730.
Alexey Lapshin via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 24 05:10:43 PDT 2020
Author: Alexey Lapshin
Date: 2020-09-24T15:09:57+03:00
New Revision: 4da6927de47074f56531c2e7e2eecc4d6a1f09ec
URL: https://github.com/llvm/llvm-project/commit/4da6927de47074f56531c2e7e2eecc4d6a1f09ec
DIFF: https://github.com/llvm/llvm-project/commit/4da6927de47074f56531c2e7e2eecc4d6a1f09ec.diff
LOG: Fix a builtbot failure after 3ed04f93e30121867a813a220452b97aebeb1730.
Added:
Modified:
llvm/tools/llvm-objcopy/MachO/MachOReader.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-objcopy/MachO/MachOReader.cpp b/llvm/tools/llvm-objcopy/MachO/MachOReader.cpp
index 6b08f294c1d4..46c869d72c6e 100644
--- a/llvm/tools/llvm-objcopy/MachO/MachOReader.cpp
+++ b/llvm/tools/llvm-objcopy/MachO/MachOReader.cpp
@@ -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
More information about the llvm-commits
mailing list