[lld] b3c7d59 - [lld] Use DenseMap::insert_range (NFC) (#133845)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 31 21:03:30 PDT 2025
Author: Kazu Hirata
Date: 2025-03-31T21:03:26-07:00
New Revision: b3c7d5951673cf45150f80744a89866c6646eb71
URL: https://github.com/llvm/llvm-project/commit/b3c7d5951673cf45150f80744a89866c6646eb71
DIFF: https://github.com/llvm/llvm-project/commit/b3c7d5951673cf45150f80744a89866c6646eb71.diff
LOG: [lld] Use DenseMap::insert_range (NFC) (#133845)
Added:
Modified:
lld/COFF/DebugTypes.cpp
Removed:
################################################################################
diff --git a/lld/COFF/DebugTypes.cpp b/lld/COFF/DebugTypes.cpp
index d4d80bfd92efb..28e6993e3eeaa 100644
--- a/lld/COFF/DebugTypes.cpp
+++ b/lld/COFF/DebugTypes.cpp
@@ -1187,8 +1187,7 @@ void TypeMerger::mergeTypesWithGHash() {
// Build a global map of from function ID to function type.
for (TpiSource *source : ctx.tpiSourceList) {
- for (auto idToType : source->funcIdToType)
- funcIdToType.insert(idToType);
+ funcIdToType.insert_range(source->funcIdToType);
source->funcIdToType.clear();
}
More information about the llvm-commits
mailing list