We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba45453 commit 9ff6c35Copy full SHA for 9ff6c35
llvm/include/llvm/ADT/DenseMap.h
@@ -118,12 +118,13 @@ class DenseMapBase : public DebugEpochBase {
118
return;
119
}
120
121
- const KeyT EmptyKey = getEmptyKey(), TombstoneKey = getTombstoneKey();
+ const KeyT EmptyKey = getEmptyKey();
122
if (std::is_trivially_destructible<ValueT>::value) {
123
// Use a simpler loop when values don't need destruction.
124
for (BucketT *P = getBuckets(), *E = getBucketsEnd(); P != E; ++P)
125
P->getFirst() = EmptyKey;
126
} else {
127
+ const KeyT TombstoneKey = getTombstoneKey();
128
unsigned NumEntries = getNumEntries();
129
for (BucketT *P = getBuckets(), *E = getBucketsEnd(); P != E; ++P) {
130
if (!KeyInfoT::isEqual(P->getFirst(), EmptyKey)) {
0 commit comments