mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
DebugInfo: Avoid an extra map lookup when finding abstract subprogram DIEs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209676 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
254d093f99
commit
0fb9226470
@ -435,7 +435,7 @@ DwarfDebug::constructInlinedScopeDIE(DwarfCompileUnit &TheCU,
|
||||
DISubprogram InlinedSP = getDISubprogram(DS);
|
||||
// Find the subprogram's DwarfCompileUnit in the SPMap in case the subprogram
|
||||
// was inlined from another compile unit.
|
||||
DIE *OriginDIE = SPMap[InlinedSP]->getDIE(InlinedSP);
|
||||
DIE *OriginDIE = AbstractSPDies[InlinedSP];
|
||||
assert(OriginDIE && "Unable to find original DIE for an inlined subprogram.");
|
||||
|
||||
auto ScopeDIE = make_unique<DIE>(dwarf::DW_TAG_inlined_subroutine);
|
||||
|
Loading…
x
Reference in New Issue
Block a user