Skip to content

Commit 2cbe5a3

Browse files
committed
[llvm-objcopy] Fix the build again after 7ddc320
1 parent 3c70731 commit 2cbe5a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/ObjCopy/ELF/ELFObject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2980,7 +2980,7 @@ SRECWriter::getTotalSize(WritableMemoryBuffer &EmptyBuffer) const {
29802980
SRECSizeCalculator SizeCalc(EmptyBuffer, 0);
29812981
for (const SectionBase *Sec : Sections)
29822982
if (Error Err = Sec->accept(SizeCalc))
2983-
return Err;
2983+
return std::move(Err);
29842984

29852985
SizeCalc.writeRecords(Obj.Entry);
29862986
// We need to add the size of the Header and Terminator records.

0 commit comments

Comments
 (0)