diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-02-15 19:21:44 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-02-15 19:21:44 +0000 |
commit | e01ad2d129640a404844b3e55c7be4405ac21a24 (patch) | |
tree | 0d4cc06e57dea16c54cfa5b36237f5877da1084a | |
parent | 1f46998b3f05bea569db27b3de78a091aa943ca3 (diff) |
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
-rw-r--r-- | include/llvm/ADT/BitVector.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/llvm/ADT/BitVector.h b/include/llvm/ADT/BitVector.h index d728473117..937296b487 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); } |