diff options
-rw-r--r-- | include/llvm/ADT/BitVector.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/ADT/BitVector.h b/include/llvm/ADT/BitVector.h index 5247756618..243a8102cf 100644 --- a/include/llvm/ADT/BitVector.h +++ b/include/llvm/ADT/BitVector.h @@ -188,7 +188,8 @@ public: // If we previously had no size, initialize the low word if (Size == 0) - Bits[0] = t; + for (unsigned i = 0; i < Capacity; ++i) + Bits[i] = 0 - (unsigned)t; Size = N; clear_unused_bits(); |