[lld] Use DenseMap::insert_range (NFC) (#133845)

This commit is contained in:
Kazu Hirata 2025-03-31 21:03:26 -07:00 committed by GitHub
parent 386aca4a3c
commit b3c7d59516
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();
}