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
1 changed files with 1 additions and 1 deletions

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);
if (!*op) {
*op = new_operand (op_temp);
(*op)->type = low_level_type (e->e.expr.type);
(*op)->type = low_level_type (type);
}
s->opc = *op;
sblock_add_statement (sblock, s);