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 b5dd1fe commit 569dd42Copy full SHA for 569dd42
llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp
@@ -484,10 +484,8 @@ COFFPlatform::buildJDDepMap(JITDylib &JD) {
484
}
485
DM.push_back(KV.first);
486
// Push unvisited entry.
487
- if (!JDDepMap.count(KV.first)) {
+ if (JDDepMap.try_emplace(KV.first).second)
488
Worklist.push_back(KV.first);
489
- JDDepMap[KV.first] = {};
490
- }
491
492
});
493
0 commit comments