Skip to content

Commit 0dd8f32

Browse files
[ADT] Use structured bindings (NFC) (#161627)
Both Size and Count are just integers, so I am not using & here.
1 parent b436488 commit 0dd8f32

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/include/llvm/ADT/ConcurrentHashtable.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,8 @@ class ConcurrentHashTableByPtr {
253253

254254
OS << "\nOverall number of entries = " << OverallNumberOfEntries;
255255
OS << "\nOverall number of non empty buckets = " << NumberOfNonEmptyBuckets;
256-
for (auto &BucketSize : BucketSizesMap)
257-
OS << "\n Number of buckets with size " << BucketSize.first << ": "
258-
<< BucketSize.second;
256+
for (auto [Size, Count] : BucketSizesMap)
257+
OS << "\n Number of buckets with size " << Size << ": " << Count;
259258

260259
std::stringstream stream;
261260
stream << std::fixed << std::setprecision(2)

0 commit comments

Comments
 (0)