[llvm] d10983b - [ORC] Replace KV loop variables with structured bindings, fix typo.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 8 22:02:30 PDT 2024
Author: Lang Hames
Date: 2024-04-08T22:50:18-06:00
New Revision: d10983b8a39abdbfaffd207720f67f96227b5ac9
URL: https://github.com/llvm/llvm-project/commit/d10983b8a39abdbfaffd207720f67f96227b5ac9
DIFF: https://github.com/llvm/llvm-project/commit/d10983b8a39abdbfaffd207720f67f96227b5ac9.diff
LOG: [ORC] Replace KV loop variables with structured bindings, fix typo.
Coding my way home: 2.29247S, 94.15173W
Added:
Modified:
llvm/include/llvm/ExecutionEngine/Orc/Core.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/Core.h b/llvm/include/llvm/ExecutionEngine/Orc/Core.h
index 286112a0b46a6c..09b2f6a10e35e0 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/Core.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/Core.h
@@ -227,14 +227,14 @@ class SymbolLookupSet {
}
/// Construct a SymbolLookupSet from DenseMap keys.
- template <typename KeyT>
+ template <typename ValT>
static SymbolLookupSet
- fromMapKeys(const DenseMap<SymbolStringPtr, KeyT> &M,
+ fromMapKeys(const DenseMap<SymbolStringPtr, ValT> &M,
SymbolLookupFlags Flags = SymbolLookupFlags::RequiredSymbol) {
SymbolLookupSet Result;
Result.Symbols.reserve(M.size());
- for (const auto &KV : M)
- Result.add(KV.first, Flags);
+ for (const auto &[Name, Val] : M)
+ Result.add(Name, Flags);
return Result;
}
More information about the llvm-commits
mailing list