forked from OSchip/llvm-project
parent
3b4d2c99ad
commit
6f3ef2d70e
|
@ -75,7 +75,7 @@ public:
|
||||||
|
|
||||||
void clear() {
|
void clear() {
|
||||||
if (getNumEntries() == 0 && getNumTombstones() == 0) return;
|
if (getNumEntries() == 0 && getNumTombstones() == 0) return;
|
||||||
|
|
||||||
// If the capacity of the array is huge, and the # elements used is small,
|
// If the capacity of the array is huge, and the # elements used is small,
|
||||||
// shrink the array.
|
// shrink the array.
|
||||||
if (getNumEntries() * 4 < getNumBuckets() && getNumBuckets() > 64) {
|
if (getNumEntries() * 4 < getNumBuckets() && getNumBuckets() > 64) {
|
||||||
|
@ -1028,7 +1028,7 @@ private:
|
||||||
++Ptr;
|
++Ptr;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename KeyT, typename ValueT, typename KeyInfoT>
|
template<typename KeyT, typename ValueT, typename KeyInfoT>
|
||||||
static inline size_t
|
static inline size_t
|
||||||
capacity_in_bytes(const DenseMap<KeyT, ValueT, KeyInfoT> &X) {
|
capacity_in_bytes(const DenseMap<KeyT, ValueT, KeyInfoT> &X) {
|
||||||
|
|
Loading…
Reference in New Issue