File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
llvm/lib/CodeGen/AsmPrinter Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1757,8 +1757,11 @@ void DwarfCompileUnit::createBaseTypeDIEs() {
1757
1757
DIE *DwarfCompileUnit::getLexicalBlockDIE (const DILexicalBlock *LB) {
1758
1758
// Assume if there is an abstract tree all the DIEs are already emitted.
1759
1759
bool isAbstract = getAbstractScopeDIEs ().count (LB->getSubprogram ());
1760
- if (isAbstract && getAbstractScopeDIEs ().count (LB))
1761
- return getAbstractScopeDIEs ()[LB];
1760
+ if (isAbstract) {
1761
+ auto &DIEs = getAbstractScopeDIEs ();
1762
+ if (auto It = DIEs.find (LB); It != DIEs.end ())
1763
+ return It->second ;
1764
+ }
1762
1765
assert (!isAbstract && " Missed lexical block DIE in abstract tree!" );
1763
1766
1764
1767
// Return a concrete DIE if it exists or nullptr otherwise.
You can’t perform that action at this time.
0 commit comments