[llvm] febe1a9 - [ORC] Use structured binding to improve readability. NFC.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 2 22:31:08 PST 2025
Author: Lang Hames
Date: 2025-01-03T17:30:19+11:00
New Revision: febe1a9d286df495ca342011b3134823eee37557
URL: https://github.com/llvm/llvm-project/commit/febe1a9d286df495ca342011b3134823eee37557
DIFF: https://github.com/llvm/llvm-project/commit/febe1a9d286df495ca342011b3134823eee37557.diff
LOG: [ORC] Use structured binding to improve readability. NFC.
Added:
Modified:
llvm/include/llvm/ExecutionEngine/Orc/MachOBuilder.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/MachOBuilder.h b/llvm/include/llvm/ExecutionEngine/Orc/MachOBuilder.h
index 6ffd286c365ac2..8e29f219774b32 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/MachOBuilder.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/MachOBuilder.h
@@ -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;
More information about the llvm-commits
mailing list