Be more informative for symbol type internal errors

This commit is contained in:
Bill Currie 2019-06-06 06:45:48 +09:00
parent d00a2ef82d
commit a5da8da1dc

View file

@ -972,8 +972,8 @@ expr_symbol (sblock_t *sblock, expr_t *e, operand_t **op)
} else if (sym->sy_type == sy_func) {
*op = def_operand (sym->s.func->def, 0);
} else {
internal_error (e, "unexpected symbol type: %s",
symtype_str(sym->sy_type));
internal_error (e, "unexpected symbol type: %s for %s",
symtype_str(sym->sy_type), sym->name);
}
return sblock;
}