Skip to content

Commit b3c7d59

Browse files
[lld] Use DenseMap::insert_range (NFC) (llvm#133845)
1 parent 386aca4 commit b3c7d59

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lld/COFF/DebugTypes.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,8 +1187,7 @@ void TypeMerger::mergeTypesWithGHash() {
11871187

11881188
// Build a global map of from function ID to function type.
11891189
for (TpiSource *source : ctx.tpiSourceList) {
1190-
for (auto idToType : source->funcIdToType)
1191-
funcIdToType.insert(idToType);
1190+
funcIdToType.insert_range(source->funcIdToType);
11921191
source->funcIdToType.clear();
11931192
}
11941193

0 commit comments

Comments
 (0)