aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-02-15 18:48:41 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-02-15 18:48:41 +0000
commitc48aafe6c6d6f63197b1e21f6f5e7fb963fd313f (patch)
tree65394c3653033817d8f677c80558187d367614d8
parent16db3caba8b2ee105e8e792b2b0466fd60936cd2 (diff)
Inverted the condition by accident.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34309 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ADT/BitVector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/BitVector.h b/include/llvm/ADT/BitVector.h
index 2ac4a82e27..8653545134 100644
--- a/include/llvm/ADT/BitVector.h
+++ b/include/llvm/ADT/BitVector.h
@@ -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;