This can be a local in dwarf_decode_line_header.
Change-Id: I2ecf4616d1a3197bd1e81ded9f999a2da9a685af
return NULL;
}
}
- lh->header_length = read_offset (abfd, line_ptr, offset_size);
+
+ LONGEST header_length = read_offset (abfd, line_ptr, offset_size);
line_ptr += offset_size;
- lh->statement_program_start = line_ptr + lh->header_length;
+ lh->statement_program_start = line_ptr + header_length;
lh->minimum_instruction_length = read_1_byte (abfd, line_ptr);
line_ptr += 1;
+
if (lh->version >= 4)
{
lh->maximum_ops_per_instruction = read_1_byte (abfd, line_ptr);
unsigned offset_in_dwz : 1; /* Can't initialize bitfields in-class. */
unsigned short version {};
- unsigned int header_length {};
unsigned char minimum_instruction_length {};
unsigned char maximum_ops_per_instruction {};
unsigned char default_is_stmt {};