* dwarf2read.c (read_set_type): Set type length if

DW_AT_byte_size attribute is present.
This commit is contained in:
Pierre Muller
2010-05-17 15:55:01 +00:00
parent 7a081a30fd
commit d09039ddeb
2 changed files with 8 additions and 0 deletions

View File

@@ -5547,7 +5547,10 @@ static struct type *
read_set_type (struct die_info *die, struct dwarf2_cu *cu)
{
struct type *set_type = create_set_type (NULL, die_type (die, cu));
struct attribute *attr = dwarf2_attr (die, DW_AT_byte_size, cu);
if (attr)
TYPE_LENGTH (set_type) = DW_UNSND (attr);
return set_die_type (die, set_type, cu);
}