From f73b1abdea5cb16a2ebce279eceaff8995c1a9c2 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 15 Feb 2007 19:21:44 +0000 Subject: [PATCH] BitVector::reference operator=(const reference& rhs) is unnecessary thanks to autoconvert to bool. llvm-svn: 34320 --- include/llvm/ADT/BitVector.h | 8 -------- 1 file changed, 8 deletions(-) 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); }