Skip to content

Commit f903119

Browse files
committed
Fixed a compile error on use of deleted function ¡®{anonymous}::MemberData::MemberData(const {anonymous}::MemberData&)
Summary: There is compile error on https://lab.llvm.org/buildbot/#/builders/264/builds/1147/steps/5/logs/stdio when commit in https://reviews.llvm.org/D144872
1 parent 84447c0 commit f903119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Object/ArchiveWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ computeMemberData(raw_ostream &StringTable, raw_ostream &SymNames,
901901
// archive, regardless of whether there are any symbols in it.
902902
if (HasObject && SymNames.tell() == 0 && !isCOFFArchive(Kind))
903903
SymNames << '\0' << '\0' << '\0';
904-
return Ret;
904+
return std::move(Ret);
905905
}
906906

907907
namespace llvm {

0 commit comments

Comments
 (0)