Skip to content

Commit

Permalink
[DWARF] Use std::tie after #83047. NFC
Browse files Browse the repository at this point in the history
The code suggestion was neglected when the patch landed.
  • Loading branch information
MaskRay committed Mar 1, 2024
1 parent 1685e7f commit 7b0b64a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7b0b64a

Please sign in to comment.