diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
commit | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch) | |
tree | 64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/libs/llvm12/include/llvm/ADT/DenseMap.h | |
parent | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff) | |
download | ydb-e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/llvm12/include/llvm/ADT/DenseMap.h')
-rw-r--r-- | contrib/libs/llvm12/include/llvm/ADT/DenseMap.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/libs/llvm12/include/llvm/ADT/DenseMap.h b/contrib/libs/llvm12/include/llvm/ADT/DenseMap.h index 96839b7288..bcc503ee21 100644 --- a/contrib/libs/llvm12/include/llvm/ADT/DenseMap.h +++ b/contrib/libs/llvm12/include/llvm/ADT/DenseMap.h @@ -433,8 +433,8 @@ protected: setNumEntries(other.getNumEntries()); setNumTombstones(other.getNumTombstones()); - if (std::is_trivially_copyable<KeyT>::value && - std::is_trivially_copyable<ValueT>::value) + if (std::is_trivially_copyable<KeyT>::value && + std::is_trivially_copyable<ValueT>::value) memcpy(reinterpret_cast<void *>(getBuckets()), other.getBuckets(), getNumBuckets() * sizeof(BucketT)); else @@ -961,7 +961,7 @@ public: std::swap(*LHSB, *RHSB); continue; } - // Swap separately and handle any asymmetry. + // Swap separately and handle any asymmetry. std::swap(LHSB->getFirst(), RHSB->getFirst()); if (hasLHSValue) { ::new (&RHSB->getSecond()) ValueT(std::move(LHSB->getSecond())); @@ -1049,7 +1049,7 @@ public: if (Small) { // First move the inline buckets into a temporary storage. AlignedCharArrayUnion<BucketT[InlineBuckets]> TmpStorage; - BucketT *TmpBegin = reinterpret_cast<BucketT *>(&TmpStorage); + BucketT *TmpBegin = reinterpret_cast<BucketT *>(&TmpStorage); BucketT *TmpEnd = TmpBegin; // Loop over the buckets, moving non-empty, non-tombstones into the @@ -1139,8 +1139,8 @@ private: assert(Small); // Note that this cast does not violate aliasing rules as we assert that // the memory's dynamic type is the small, inline bucket buffer, and the - // 'storage' is a POD containing a char buffer. - return reinterpret_cast<const BucketT *>(&storage); + // 'storage' is a POD containing a char buffer. + return reinterpret_cast<const BucketT *>(&storage); } BucketT *getInlineBuckets() { @@ -1151,7 +1151,7 @@ private: const LargeRep *getLargeRep() const { assert(!Small); // Note, same rule about aliasing as with getInlineBuckets. - return reinterpret_cast<const LargeRep *>(&storage); + return reinterpret_cast<const LargeRep *>(&storage); } LargeRep *getLargeRep() { |