Correct the type for _OBJ_SELECTOR_TABLE.

This commit is contained in:
Bill Currie 2011-02-15 12:09:39 +09:00
parent b3da6ef3d4
commit 5252d72856
2 changed files with 3 additions and 2 deletions

View file

@ -2515,7 +2515,8 @@ selector_expr (keywordarg_t *selector)
pr.near_data, st_static); pr.near_data, st_static);
if (!sel_sym->table) { if (!sel_sym->table) {
symtab_addsymbol (pr.symtab, sel_sym); symtab_addsymbol (pr.symtab, sel_sym);
sel_table = make_symbol ("_OBJ_SELECTOR_TABLE", type_SEL.t.fldptr.type, sel_table = make_symbol ("_OBJ_SELECTOR_TABLE",
array_type (type_SEL.t.fldptr.type, 0),
pr.far_data, st_extern); pr.far_data, st_extern);
if (!sel_table->table) if (!sel_table->table)
symtab_addsymbol (pr.symtab, sel_table); symtab_addsymbol (pr.symtab, sel_table);

View file

@ -390,7 +390,7 @@ emit_selectors (void)
return 0; return 0;
sel_type = array_type (type_SEL.t.fldptr.type, sel_index); sel_type = array_type (type_SEL.t.fldptr.type, sel_index);
sel_sym = make_symbol ("_OBJ_SELECTOR_TABLE", type_SEL.t.fldptr.type, sel_sym = make_symbol ("_OBJ_SELECTOR_TABLE", sel_type,
pr.far_data, st_static); pr.far_data, st_static);
if (!sel_sym->table) if (!sel_sym->table)
symtab_addsymbol (pr.symtab, sel_sym); symtab_addsymbol (pr.symtab, sel_sym);