OSDN Git Service

Inverted the condition by accident.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 15 Feb 2007 18:48:41 +0000 (18:48 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 15 Feb 2007 18:48:41 +0000 (18:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34309 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/BitVector.h

index 2ac4a82..8653545 100644 (file)
@@ -278,7 +278,7 @@ public:
 
     Size = RHS.size();
     unsigned RHSWords = NumBitWords(Size);
-    if (Size > Capacity * BITS_PER_WORD) {
+    if (Size <= Capacity * BITS_PER_WORD) {
       std::copy(RHS.Bits, &RHS.Bits[RHSWords], Bits);
       clear_unused_bits();
       return *this;