mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-19 04:31:17 +00:00
Clear no longer deleting the bits to avoid mallocs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34315 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7bf26c1d68
commit
ccae61c5da
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user