File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -393,16 +393,17 @@ Expected<DWARFAddressRangesVector> DWARFDie::getAddressRanges() const {
393393 return DWARFAddressRangesVector{{LowPC, HighPC, Index}};
394394
395395 std::optional<DWARFFormValue> Value = find (DW_AT_ranges);
396- if (Value) {
397- std::optional<uint64_t > SecOff = Value->getAsSectionOffset ();
398- if (!SecOff) {
399- return DWARFAddressRangesVector ();
400- }
401- if (Value->getForm () == DW_FORM_rnglistx)
402- return U->findRnglistFromIndex (*SecOff);
403- return U->findRnglistFromOffset (*SecOff);
404- }
405- return DWARFAddressRangesVector ();
396+ if (!Value)
397+ return DWARFAddressRangesVector ();
398+
399+ std::optional<uint64_t > SecOff = Value->getAsSectionOffset ();
400+ if (!SecOff)
401+ return DWARFAddressRangesVector ();
402+
403+ if (Value->getForm () == DW_FORM_rnglistx)
404+ return U->findRnglistFromIndex (*SecOff);
405+
406+ return U->findRnglistFromOffset (*SecOff);
406407}
407408
408409bool DWARFDie::addressRangeContainsAddress (const uint64_t Address) const {
You can’t perform that action at this time.
0 commit comments