aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/ADT/BitVector.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/ADT/BitVector.h b/include/llvm/ADT/BitVector.h
index fb0768979f..39819ee5c8 100644
--- a/include/llvm/ADT/BitVector.h
+++ b/include/llvm/ADT/BitVector.h
@@ -78,6 +78,7 @@ public:
BitVector(const BitVector &RHS) : Size(RHS.size()) {
if (Size == 0) {
Bits = NULL;
+ Capacity = 0;
return;
}