[lld] 4d5c8ca - [LLD] Add a default copy constructor to avoid warnings

Nemanja Ivanovic via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 25 12:09:50 PST 2019


Author: Nemanja Ivanovic
Date: 2019-11-25T14:09:16-06:00
New Revision: 4d5c8caf9b4b9b9507cf7e5eb695051209e7b667

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

LOG: [LLD] Add a default copy constructor to avoid warnings

This should fix the failure on the PPC64LE LLD bot.

Added: 
    

Modified: 
    lld/COFF/Chunks.h

Removed: 
    


################################################################################
diff  --git a/lld/COFF/Chunks.h b/lld/COFF/Chunks.h
index 6bb629fe998b..6aed040069df 100644
--- a/lld/COFF/Chunks.h
+++ b/lld/COFF/Chunks.h
@@ -267,6 +267,7 @@ class SectionChunk final : public Chunk {
             AssociatedIterator, std::forward_iterator_tag, SectionChunk> {
   public:
     AssociatedIterator() = default;
+    AssociatedIterator(const AssociatedIterator&) = default;
     AssociatedIterator(SectionChunk *head) : cur(head) {}
     AssociatedIterator &operator=(const AssociatedIterator &r) {
       cur = r.cur;


        


More information about the llvm-commits mailing list