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 7501c9c commit 791da3cCopy full SHA for 791da3c
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -1777,8 +1777,9 @@ DIE *DwarfCompileUnit::getOrCreateContextDIE(const DIScope *Context) {
1777
1778
// Otherwise the context must be a DISubprogram.
1779
auto *SPScope = cast<DISubprogram>(Context);
1780
- if (getAbstractScopeDIEs().count(SPScope))
1781
- return getAbstractScopeDIEs()[SPScope];
+ const auto &DIEs = getAbstractScopeDIEs();
+ if (auto It = DIEs.find(SPScope); It != DIEs.end())
1782
+ return It->second;
1783
}
1784
return DwarfUnit::getOrCreateContextDIE(Context);
1785
0 commit comments