llvm.org GIT mirror llvm / ed3abe4
Revert "DebugInfo: Assume all subprogram DIEs have been created before any abstract subprograms are constructed." This reverts commit r209178. This seems to be asserting in an LTO build on some internal Apple buildbots. No upstream reproduction (and I don't have an LLVM-aware gold built right now to reproduce it personally) but it's a small patch & the failure's semi-plausible so I'm going to revert first while I try to reproduce this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209251 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 6 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
529529 if (!ProcessedSPNodes.insert(Sub))
530530 return;
531531
532 DIE *ScopeDIE = TheCU.getDIE(Sub);
533 assert(ScopeDIE);
534 AbstractSPDies.insert(std::make_pair(Sub, ScopeDIE));
535 TheCU.addUInt(*ScopeDIE, dwarf::DW_AT_inline, None, dwarf::DW_INL_inlined);
536 createAndAddScopeChildren(TheCU, Scope, *ScopeDIE);
532 if (DIE *ScopeDIE = TheCU.getDIE(Sub)) {
533 AbstractSPDies.insert(std::make_pair(Sub, ScopeDIE));
534 TheCU.addUInt(*ScopeDIE, dwarf::DW_AT_inline, None, dwarf::DW_INL_inlined);
535 createAndAddScopeChildren(TheCU, Scope, *ScopeDIE);
536 }
537537 }
538538
539539 DIE &DwarfDebug::constructSubprogramScopeDIE(DwarfCompileUnit &TheCU,