Skip to content

Commit 08d33aa

Browse files
committed
[nfc] [lldb] Remove variable ranges_base in DWARFUnit::AddUnitDIE
1 parent 6976255 commit 08d33aa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,7 @@ uint64_t DWARFUnit::GetDWOId() {
292292

293293
// m_die_array_mutex must be already held as read/write.
294294
void DWARFUnit::AddUnitDIE(const DWARFDebugInfoEntry &cu_die) {
295-
llvm::Optional<uint64_t> addr_base, gnu_addr_base, ranges_base,
296-
gnu_ranges_base;
295+
llvm::Optional<uint64_t> addr_base, gnu_addr_base, gnu_ranges_base;
297296

298297
DWARFAttributes attributes;
299298
size_t num_attributes = cu_die.GetAttributes(this, attributes);
@@ -320,8 +319,7 @@ void DWARFUnit::AddUnitDIE(const DWARFDebugInfoEntry &cu_die) {
320319
SetLoclistsBase(form_value.Unsigned());
321320
break;
322321
case DW_AT_rnglists_base:
323-
ranges_base = form_value.Unsigned();
324-
SetRangesBase(*ranges_base);
322+
SetRangesBase(form_value.Unsigned());
325323
break;
326324
case DW_AT_str_offsets_base:
327325
SetStrOffsetsBase(form_value.Unsigned());

0 commit comments

Comments
 (0)