mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Clear the whole table including the tombstones, since the tombstone count will
be set to zero that is what it was intended. Should improve performance of the data structure when clear is invoked frequently (both compile time and memory usage). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175799 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -338,8 +338,8 @@ public:
|
||||
StringMapEntryBase *&Bucket = TheTable[I];
|
||||
if (Bucket && Bucket != getTombstoneVal()) {
|
||||
static_cast<MapEntryTy*>(Bucket)->Destroy(Allocator);
|
||||
Bucket = 0;
|
||||
}
|
||||
Bucket = 0;
|
||||
}
|
||||
|
||||
NumItems = 0;
|
||||
|
Reference in New Issue
Block a user