Use the correct type when deferencing an offset pointer.

This commit is contained in:
Bill Currie 2011-02-10 14:26:12 +09:00
parent 1099ca086c
commit 6f625e426f

View file

@ -435,7 +435,7 @@ expr_deref (sblock_t *sblock, expr_t *e, operand_t **op)
sblock = statement_subexpr (sblock, e->e.expr.e2, &s->opb); sblock = statement_subexpr (sblock, e->e.expr.e2, &s->opb);
if (!*op) { if (!*op) {
*op = new_operand (op_temp); *op = new_operand (op_temp);
(*op)->type = low_level_type (e->e.expr.type); (*op)->type = low_level_type (type);
} }
s->opc = *op; s->opc = *op;
sblock_add_statement (sblock, s); sblock_add_statement (sblock, s);