[lldb/DWARF] Move a declaration closer to its use

Adresses post-commit feedback on D112310.
This commit is contained in:
Pavel Labath 2021-10-26 09:58:10 +02:00
parent f431d3878a
commit b69564d94d
1 changed files with 1 additions and 1 deletions

View File

@ -863,7 +863,6 @@ Function *SymbolFileDWARF::ParseFunction(CompileUnit &comp_unit,
// Union of all ranges in the function DIE (if the function is
// discontiguous)
AddressRange func_range;
lldb::addr_t lowest_func_addr = ranges.GetMinRangeBase(0);
lldb::addr_t highest_func_addr = ranges.GetMaxRangeEnd(0);
if (lowest_func_addr == LLDB_INVALID_ADDRESS ||
@ -872,6 +871,7 @@ Function *SymbolFileDWARF::ParseFunction(CompileUnit &comp_unit,
return nullptr;
ModuleSP module_sp(die.GetModule());
AddressRange func_range;
func_range.GetBaseAddress().ResolveAddressUsingFileSections(
lowest_func_addr, module_sp->GetSectionList());
if (!func_range.GetBaseAddress().IsValid())