[LLD] Add a default copy constructor to avoid warnings
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Mon, 25 Nov 2019 20:07:57 +0000 (14:07 -0600)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Mon, 25 Nov 2019 20:09:16 +0000 (14:09 -0600)
This should fix the failure on the PPC64LE LLD bot.

lld/COFF/Chunks.h

index 6bb629f..6aed040 100644 (file)
@@ -267,6 +267,7 @@ public:
             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;