diff options
Diffstat (limited to 'runtime/base/bit_vector.cc')
-rw-r--r-- | runtime/base/bit_vector.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/runtime/base/bit_vector.cc b/runtime/base/bit_vector.cc index 3d2f0deac5..1d67962800 100644 --- a/runtime/base/bit_vector.cc +++ b/runtime/base/bit_vector.cc @@ -145,10 +145,7 @@ bool BitVector::UnionIfNotIn(const BitVector* union_with, const BitVector* not_i // Is the storage size smaller than src's? if (storage_size_ < union_with_size) { - changed = true; - - // Set it to reallocate. - SetBit(highest_bit); + EnsureSize(highest_bit); // Paranoid: storage size should be big enough to hold this bit now. DCHECK_LT(static_cast<uint32_t> (highest_bit), storage_size_ * kWordBits); |