[llvm] 7b0b64a - [DWARF] Use std::tie after #83047. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 1 12:02:15 PST 2024
Author: Fangrui Song
Date: 2024-03-01T12:02:10-08:00
New Revision: 7b0b64a7016d67d6d8c538fe406a2ffd93c11602
URL: https://github.com/llvm/llvm-project/commit/7b0b64a7016d67d6d8c538fe406a2ffd93c11602
DIFF: https://github.com/llvm/llvm-project/commit/7b0b64a7016d67d6d8c538fe406a2ffd93c11602.diff
LOG: [DWARF] Use std::tie after #83047. NFC
The code suggestion was neglected when the patch landed.
Added:
Modified:
llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp b/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
index 9e1727a0b8d138..55cdc3c9286420 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
@@ -38,9 +38,8 @@ void AccelTableBase::computeBucketCount() {
for (const auto &E : Entries)
Uniques.push_back(E.second.HashValue);
- auto Counts = llvm::dwarf::getDebugNamesBucketAndHashCount(Uniques);
- BucketCount = Counts.first;
- UniqueHashCount = Counts.second;
+ std::tie(BucketCount, UniqueHashCount) =
+ llvm::dwarf::getDebugNamesBucketAndHashCount(Uniques);
}
void AccelTableBase::finalize(AsmPrinter *Asm, StringRef Prefix) {
More information about the llvm-commits
mailing list