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:
parent
471e882080
commit
f73b1abdea
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user