forked from OSchip/llvm-project
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:
parent
4c4b238448
commit
7ff09810a8
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue