And fix build_struct for built-in struct types.
The previous fix broke builtin structs (eg, @param). Calling find_type() for built-in structs has proven to be a bad idea :)
This commit is contained in:
parent
a19b7ec8f9
commit
e0d61705b4
|
@ -129,7 +129,8 @@ build_struct (int su, symbol_t *tag, symtab_t *symtab, type_t *type)
|
|||
symtab->size = size;
|
||||
}
|
||||
}
|
||||
sym->type = find_type (sym->type); // checks the tag, not the symtab
|
||||
if (!type)
|
||||
sym->type = find_type (sym->type); // checks the tag, not the symtab
|
||||
sym->type->t.symtab = symtab;
|
||||
return sym;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue