We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f8451c commit 690b8b4Copy full SHA for 690b8b4
lld/COFF/Writer.cpp
@@ -1278,8 +1278,7 @@ void Writer::createImportTables() {
1278
continue;
1279
1280
std::string dll = StringRef(file->dllName).lower();
1281
- if (ctx.config.dllOrder.count(dll) == 0)
1282
- ctx.config.dllOrder[dll] = ctx.config.dllOrder.size();
+ ctx.config.dllOrder.try_emplace(dll, ctx.config.dllOrder.size());
1283
1284
if (file->impSym && !isa<DefinedImportData>(file->impSym))
1285
Fatal(ctx) << file->symtab.printSymbol(file->impSym) << " was replaced";
0 commit comments