From adf3e36aeeb47e087bcdd33bf29aadb9d58a7670 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 22 Dec 2012 17:06:00 +0900 Subject: [PATCH] Get the tempop alias's type from the right place. Temporyary aliases use only the low-level type, not the full type descriptor. Fixes the segfault when dumping dot graphs. --- tools/qfcc/source/statements.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qfcc/source/statements.c b/tools/qfcc/source/statements.c index db6b30c38..aadec45f4 100644 --- a/tools/qfcc/source/statements.c +++ b/tools/qfcc/source/statements.c @@ -125,7 +125,7 @@ operand_string (operand_t *op) case op_temp: if (op->o.tempop.alias) return va ("", - pr_type_name[op->o.tempop.type->type], + pr_type_name[op->type], op, op->o.tempop.users, op->o.tempop.alias, op->o.tempop.alias->o.tempop.users);