dwarves_reorganize: Fix class__demote_bitfields, we need power of two bytes
There is no such thing as a 3 bytes sized base type. Round it up to 4. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
dffd3d4ee7
commit
f0435286c0
|
@ -533,6 +533,7 @@ static int class__demote_bitfields(struct class *class, const struct cu *cu,
|
|||
|
||||
size = member->byte_size;
|
||||
bytes_needed = (current_bitfield_size + 7) / 8;
|
||||
bytes_needed = roundup(bytes_needed, 2);
|
||||
if (bytes_needed == size)
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in New Issue