projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bf26c1
)
Clear no longer deleting the bits to avoid mallocs.
author
Evan Cheng
<evan.cheng@apple.com>
Thu, 15 Feb 2007 19:10:34 +0000
(19:10 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Thu, 15 Feb 2007 19:10:34 +0000
(19:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34315
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/BitVector.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/BitVector.h
b/include/llvm/ADT/BitVector.h
index 03789aa4ffbf71cb1a1bd0bf5cd5d7f43a0d931a..6910be04e510ee913f79998ea9b3cf55199ec35a 100644
(file)
--- 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.