Skip to content

Commit febe1a9

Browse files
committed
[ORC] Use structured binding to improve readability. NFC.
1 parent 93a68a5 commit febe1a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/ExecutionEngine/Orc/MachOBuilder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,8 @@ template <typename MachOTraits> class MachOBuilder {
460460
return;
461461

462462
StrTab.resize(Strings.size());
463-
for (auto &KV : Strings)
464-
StrTab[KV.second] = {KV.first, 0};
463+
for (auto &[Str, Idx] : Strings)
464+
StrTab[Idx] = {Str, 0};
465465
size_t Offset = 0;
466466
for (auto &Elem : StrTab) {
467467
Elem.Offset = Offset;

0 commit comments

Comments
 (0)