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 9453b38 commit 05209f1Copy full SHA for 05209f1
llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
@@ -635,11 +635,12 @@ void MachOPlatform::pushInitializersLoop(
635
Worklist.pop_back();
636
637
// If we've already visited this JITDylib on this iteration then continue.
638
- if (JDDepMap.count(DepJD))
+ auto [It, Inserted] = JDDepMap.try_emplace(DepJD);
639
+ if (!Inserted)
640
continue;
641
642
// Add dep info.
- auto &DM = JDDepMap[DepJD];
643
+ auto &DM = It->second;
644
DepJD->withLinkOrderDo([&](const JITDylibSearchOrder &O) {
645
for (auto &KV : O) {
646
if (KV.first == DepJD)
0 commit comments