From: Evan Cheng Date: Thu, 15 Feb 2007 19:21:44 +0000 (+0000) Subject: BitVector::reference operator=(const reference& rhs) is unnecessary thanks to autocon... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e01ad2d129640a404844b3e55c7be4405ac21a24;p=oota-llvm.git BitVector::reference operator=(const reference& rhs) is unnecessary thanks to autoconvert to bool. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34320 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/BitVector.h b/include/llvm/ADT/BitVector.h index d7284731173..937296b487a 100644 --- a/include/llvm/ADT/BitVector.h +++ b/include/llvm/ADT/BitVector.h @@ -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); }