aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/ADT/BitVector.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/ADT/BitVector.h b/include/llvm/ADT/BitVector.h
index 937296b487..fb0768979f 100644
--- a/include/llvm/ADT/BitVector.h
+++ b/include/llvm/ADT/BitVector.h
@@ -98,7 +98,7 @@ public:
else if (sizeof(BitWord) == 8)
NumBits += CountPopulation_64(Bits[i]);
else
- assert(0 && "Unsupported!")
+ assert(0 && "Unsupported!");
return NumBits;
}
@@ -160,8 +160,7 @@ public:
init_words(&Bits[OldCapacity], (Capacity-OldCapacity), t);
}
Size = N;
- if (t)
- clear_unused_bits();
+ clear_unused_bits();
}
void reserve(unsigned N) {