Skip to content

Commit

Permalink
[ORC] Use structured binding to improve readability. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
lhames committed Jan 3, 2025
1 parent 93a68a5 commit febe1a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/include/llvm/ExecutionEngine/Orc/MachOBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,8 @@ template <typename MachOTraits> class MachOBuilder {
return;

StrTab.resize(Strings.size());
for (auto &KV : Strings)
StrTab[KV.second] = {KV.first, 0};
for (auto &[Str, Idx] : Strings)
StrTab[Idx] = {Str, 0};
size_t Offset = 0;
for (auto &Elem : StrTab) {
Elem.Offset = Offset;
Expand Down

0 comments on commit febe1a9

Please sign in to comment.