mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01: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). llvm-svn: 175799
This commit is contained in:
parent
37f247b8d8
commit
c2a923e628
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user