[llvm-commits] CVS: llvm/include/llvm/ADT/BitVector.h

Evan Cheng evan.cheng at apple.com
Thu Feb 15 11:22:01 PST 2007



Changes in directory llvm/include/llvm/ADT:

BitVector.h updated: 1.11 -> 1.12
---
Log message:

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

---
Diffs of the changes:  (+0 -8)

 BitVector.h |    8 --------
 1 files changed, 8 deletions(-)


Index: llvm/include/llvm/ADT/BitVector.h
diff -u llvm/include/llvm/ADT/BitVector.h:1.11 llvm/include/llvm/ADT/BitVector.h:1.12
--- llvm/include/llvm/ADT/BitVector.h:1.11	Thu Feb 15 13:18:12 2007
+++ llvm/include/llvm/ADT/BitVector.h	Thu Feb 15 13:21:44 2007
@@ -53,14 +53,6 @@
       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);
     }






More information about the llvm-commits mailing list