Skip to content

Commit 394adb0

Browse files
committed
Fix coding style
1 parent dbb1ca2 commit 394adb0

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

llvm/lib/DebugInfo/DWARF/DWARFDie.cpp

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff 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

408409
bool DWARFDie::addressRangeContainsAddress(const uint64_t Address) const {

0 commit comments

Comments
 (0)