From a5da8da1dcc429761aed55f2da0883a242a6a3c1 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 6 Jun 2019 06:45:48 +0900 Subject: [PATCH] Be more informative for symbol type internal errors --- tools/qfcc/source/statements.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/qfcc/source/statements.c b/tools/qfcc/source/statements.c index fae48f153..f78575fe0 100644 --- a/tools/qfcc/source/statements.c +++ b/tools/qfcc/source/statements.c @@ -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; }