[llvm] 5afbed1 - [llvm-objcopy] Fix the build after 7ddc32052546abd41656d2e670f3902b1bf805a7. NFCI
Jon Roelofs via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 9 08:49:55 PST 2024
Author: Jon Roelofs
Date: 2024-02-09T08:49:45-08:00
New Revision: 5afbed1968588fe443a8a55053c2f1eaa321d28e
URL: https://github.com/llvm/llvm-project/commit/5afbed1968588fe443a8a55053c2f1eaa321d28e
DIFF: https://github.com/llvm/llvm-project/commit/5afbed1968588fe443a8a55053c2f1eaa321d28e.diff
LOG: [llvm-objcopy] Fix the build after 7ddc32052546abd41656d2e670f3902b1bf805a7. NFCI
Added:
Modified:
llvm/lib/ObjCopy/ELF/ELFObject.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ObjCopy/ELF/ELFObject.cpp b/llvm/lib/ObjCopy/ELF/ELFObject.cpp
index c2de456f90ed8b..d7559ab2376388 100644
--- a/llvm/lib/ObjCopy/ELF/ELFObject.cpp
+++ b/llvm/lib/ObjCopy/ELF/ELFObject.cpp
@@ -2787,7 +2787,7 @@ IHexWriter::getTotalSize(WritableMemoryBuffer &EmptyBuffer) const {
IHexSectionWriterBase LengthCalc(EmptyBuffer);
for (const SectionBase *Sec : Sections)
if (Error Err = Sec->accept(LengthCalc))
- return Err;
+ return std::move(Err);
// We need space to write section records + StartAddress record
// (if start adress is not zero) + EndOfFile record.
More information about the llvm-commits
mailing list