From 1099ca086c1f6159ca8e10aea68af43a1d57efdd Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 10 Feb 2011 14:25:09 +0900 Subject: [PATCH] Dump the offending expression and statement for a bad instruction. --- tools/qfcc/source/emit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/qfcc/source/emit.c b/tools/qfcc/source/emit.c index 5ea06cbe6..c198ec7d6 100644 --- a/tools/qfcc/source/emit.c +++ b/tools/qfcc/source/emit.c @@ -169,8 +169,11 @@ emit_statement (statement_t *statement) opcode_t *op = opcode_find (opcode, def_a, def_b, def_c); dstatement_t *s; - if (!op) + if (!op) { + print_expr (statement->expr); + print_statement (statement); internal_error (statement->expr, "ice ice baby"); + } if (options.code.debug && current_func->aux) { expr_t *e = statement->expr; pr_uint_t line = (e ? e->line : pr.source_line) - lineno_base;