[lld] 22f34c7 - lld: Remove explicit copy ops from AssociatedIterator, relying on implicit operators

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 27 17:27:59 PST 2019


Author: David Blaikie
Date: 2019-12-27T17:27:20-08:00
New Revision: 22f34c7f34ad19f374284e60a3793edf9acef9da

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

LOG: lld: Remove explicit copy ops from AssociatedIterator, relying on implicit operators

Added: 
    

Modified: 
    lld/COFF/Chunks.h

Removed: 
    


################################################################################
diff  --git a/lld/COFF/Chunks.h b/lld/COFF/Chunks.h
index 6aed040069df..9ccc194c151a 100644
--- a/lld/COFF/Chunks.h
+++ b/lld/COFF/Chunks.h
@@ -267,12 +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;
-      return *this;
-    }
     bool operator==(const AssociatedIterator &r) const { return cur == r.cur; }
     const SectionChunk &operator*() const { return *cur; }
     SectionChunk &operator*() { return *cur; }


        


More information about the llvm-commits mailing list