BitVector::reference operator=(const reference& rhs) is unnecessary thanks to autocon...
authorEvan Cheng <evan.cheng@apple.com>
Thu, 15 Feb 2007 19:21:44 +0000 (19:21 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 15 Feb 2007 19:21:44 +0000 (19:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34320 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/BitVector.h

index d7284731173b1cb3c39dcd1fb76baf313873e50b..937296b487a6b6a9e8ce50fcaba697818e20f7dd 100644 (file)
@@ -53,14 +53,6 @@ public:
       return *this;
     }
 
-    reference& operator=(const reference& rhs) {
-      if (*rhs.WordRef & (1 << rhs.BitPos))
-        *WordRef |= 1L << BitPos;
-      else
-        *WordRef &= ~(1L << BitPos);
-      return *this;
-    }
-
     operator bool() const {
       return (*WordRef) & (1L << BitPos);
     }