1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

BitVector::reference operator=(const reference& rhs) is unnecessary thanks to autoconvert to bool.

llvm-svn: 34320
This commit is contained in:
Evan Cheng 2007-02-15 19:21:44 +00:00
parent 471e882080
commit f73b1abdea

View File

@ -53,14 +53,6 @@ public:
return *this; 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 { operator bool() const {
return (*WordRef) & (1L << BitPos); return (*WordRef) & (1L << BitPos);
} }