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 4405451 commit 4cfeebdCopy full SHA for 4cfeebd
llvm/lib/ExecutionEngine/Orc/ELFNixPlatform.cpp
@@ -469,11 +469,12 @@ void ELFNixPlatform::pushInitializersLoop(
469
Worklist.pop_back();
470
471
// If we've already visited this JITDylib on this iteration then continue.
472
- if (JDDepMap.count(DepJD))
+ auto [It, Inserted] = JDDepMap.try_emplace(DepJD);
473
+ if (!Inserted)
474
continue;
475
476
// Add dep info.
- auto &DM = JDDepMap[DepJD];
477
+ auto &DM = It->second;
478
DepJD->withLinkOrderDo([&](const JITDylibSearchOrder &O) {
479
for (auto &KV : O) {
480
if (KV.first == DepJD)
0 commit comments