Evidently my earlier fix did not go far enough. When resizing a zero-sized

BitVector, make sure to set or clear ALL of the bits.

llvm-svn: 38481
This commit is contained in:
Owen Anderson 2007-07-10 02:01:16 +00:00
parent 4c4b238448
commit 7ff09810a8
1 changed files with 2 additions and 1 deletions

View File

@ -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();