[llvm] f903119 - Fixed a compile error on use of deleted function ¡®{anonymous}::MemberData::MemberData(const {anonymous}::MemberData&)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 6 09:05:18 PDT 2023


Author: zhijian
Date: 2023-09-06T12:04:52-04:00
New Revision: f903119cce63377383046840a15ba277a9041df9

URL: https://github.com/llvm/llvm-project/commit/f903119cce63377383046840a15ba277a9041df9
DIFF: https://github.com/llvm/llvm-project/commit/f903119cce63377383046840a15ba277a9041df9.diff

LOG: 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

Added: 
    

Modified: 
    llvm/lib/Object/ArchiveWriter.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Object/ArchiveWriter.cpp b/llvm/lib/Object/ArchiveWriter.cpp
index 25b6eb909593528..aa74a2f74ff576c 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 {


        


More information about the llvm-commits mailing list