From f3ca0c92224dfa1e26cf1dd62d109d1eab8baf4e Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 2 Oct 2023 12:06:14 +0900 Subject: [PATCH] [qfcc] Dump conflicting type expressions in debug --- tools/qfcc/source/expr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c index b7faa1353..d24c65cbb 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -217,6 +217,10 @@ extract_type (const expr_t *e) expr_t * type_mismatch (const expr_t *e1, const expr_t *e2, int op) { + if (options.verbosity >= 2) { + print_expr (e1); + print_expr (e2); + } return error (e1, "type mismatch: %s %s %s", get_type_string (get_type (e1)), get_op_string (op), get_type_string (get_type (e2)));