mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
The subprogram die may not exist while creating "default" scope.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64920 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2125,7 +2125,10 @@ private:
|
||||
|
||||
// Get the subprogram die.
|
||||
DIE *SPDie = Unit->getDieMapSlotFor(SPD.getGV());
|
||||
assert(SPDie && "Missing subprogram descriptor");
|
||||
if (!SPDie)
|
||||
/* A subprogram die may not exist if the corresponding function
|
||||
does not have any debug info. */
|
||||
continue;
|
||||
|
||||
// Add the function bounds.
|
||||
AddLabel(SPDie, DW_AT_low_pc, DW_FORM_addr,
|
||||
|
||||
Reference in New Issue
Block a user