summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-02-15 19:10:34 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-02-15 19:10:34 +0000
commit5f96248376fce8915a29b4d87ec8d5aa2b13660d (patch)
treecc790d3c1e7b180907fbf2670c4d03b0ec99679d /llvm
parentb959dc37468f7210df0b38206adeaa0b01507ce3 (diff)
downloadbcm5719-llvm-5f96248376fce8915a29b4d87ec8d5aa2b13660d.tar.gz
bcm5719-llvm-5f96248376fce8915a29b4d87ec8d5aa2b13660d.zip
Clear no longer deleting the bits to avoid mallocs.
llvm-svn: 34315
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/ADT/BitVector.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/include/llvm/ADT/BitVector.h b/llvm/include/llvm/ADT/BitVector.h
index 03789aa4ffb..6910be04e51 100644
--- a/llvm/include/llvm/ADT/BitVector.h
+++ b/llvm/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.
OpenPOWER on IntegriCloud