Skip to content

Commit 939fe5a

Browse files
committed
fixup! add comment
1 parent cdb3a8b commit 939fe5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,9 @@ void DWARFDebugInfoEntry::BuildFunctionAddressRangeTable(
611611
DWARFUnit *cu, DWARFDebugAranges *debug_aranges) const {
612612
Log *log = GetLog(DWARFLog::DebugInfo);
613613
if (m_tag) {
614+
// Subprogram forward declarations don't have
615+
// DW_AT_ranges/DW_AT_low_pc/DW_AT_high_pc attributes, so don't even try
616+
// getting address range information for them.
614617
if (m_tag == DW_TAG_subprogram &&
615618
!GetAttributeValueAsOptionalUnsigned(cu, DW_AT_declaration)) {
616619
if (llvm::Expected<llvm::DWARFAddressRangesVector> ranges =

0 commit comments

Comments
 (0)