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:
Bill Currie 2011-02-13 21:06:06 +09:00
parent a19b7ec8f9
commit e0d61705b4

View file

@ -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;
}