Skip to content

Commit c68dbc4

Browse files
committed
fixup! make local variable const
1 parent 9c68ad5 commit c68dbc4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,8 +819,9 @@ DWARFASTParserClang::ParseTypeModifier(const SymbolContext &sc,
819819
// If a builtin type's size isn't a multiple of a byte, DWARF producers may
820820
// add a precise bit-size to the type. Use the most precise bit-size
821821
// possible.
822-
uint64_t bit_size = attrs.data_bit_size ? *attrs.data_bit_size
823-
: attrs.byte_size.value_or(0) * 8;
822+
const uint64_t bit_size = attrs.data_bit_size
823+
? *attrs.data_bit_size
824+
: attrs.byte_size.value_or(0) * 8;
824825
clang_type = m_ast.GetBuiltinTypeForDWARFEncodingAndBitSize(
825826
attrs.name.GetStringRef(), attrs.encoding, bit_size);
826827
break;

0 commit comments

Comments
 (0)