aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ArchiveWriter.cpp
diff options
context:
space:
mode:
authorzhijian <zhijian@ca.ibm.com>2023-09-06 12:04:52 -0400
committerzhijian <zhijian@ca.ibm.com>2023-09-06 12:04:52 -0400
commitf903119cce63377383046840a15ba277a9041df9 (patch)
tree0828d708ec202ecd68c1c2ac8e574c04488b4364 /llvm/lib/Object/ArchiveWriter.cpp
parent84447c044f23f16412afae184581413be5e5575f (diff)
downloadllvm-f903119cce63377383046840a15ba277a9041df9.zip
llvm-f903119cce63377383046840a15ba277a9041df9.tar.gz
llvm-f903119cce63377383046840a15ba277a9041df9.tar.bz2
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
Diffstat (limited to 'llvm/lib/Object/ArchiveWriter.cpp')
-rw-r--r--llvm/lib/Object/ArchiveWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/ArchiveWriter.cpp b/llvm/lib/Object/ArchiveWriter.cpp
index 25b6eb9..aa74a2f 100644
--- a/llvm/lib/Object/ArchiveWriter.cpp
+++ b/llvm/lib/Object/ArchiveWriter.cpp
@@ -901,7 +901,7 @@ computeMemberData(raw_ostream &StringTable, raw_ostream &SymNames,
// archive, regardless of whether there are any symbols in it.
if (HasObject && SymNames.tell() == 0 && !isCOFFArchive(Kind))
SymNames << '\0' << '\0' << '\0';
- return Ret;
+ return std::move(Ret);
}
namespace llvm {