diff --git a/include/llvm/ADT/BitVector.h b/include/llvm/ADT/BitVector.h index 03789aa4ffb..6910be04e51 100644 --- a/include/llvm/ADT/BitVector.h +++ b/include/llvm/ADT/BitVector.h @@ -157,11 +157,7 @@ public: /// clear - Clear all bits. void clear() { - if (Capacity > 0) { - delete[] Bits; - Bits = NULL; - Size = Capacity = 0; - } + Size = 0; } /// resize - Grow or shrink the bitvector.