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.
This commit is contained in:
Bill Currie 2012-12-22 17:06:00 +09:00
parent 513d67c6c3
commit adf3e36aee

View file

@ -125,7 +125,7 @@ operand_string (operand_t *op)
case op_temp:
if (op->o.tempop.alias)
return va ("<tmp %s %p:%d:%p:%d>",
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);