aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/ADT/BitVector.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/llvm/ADT/BitVector.h b/include/llvm/ADT/BitVector.h
index 03789aa4ff..6910be04e5 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.