The & operator produces a pointer, not void.

This commit is contained in:
Bill Currie 2011-01-27 14:17:55 +09:00
parent 1c3cc571f1
commit 56106892c8

View file

@ -366,7 +366,7 @@ expr_address (sblock_t *sblock, expr_t *e, operand_t **op)
{
if (e->type == ex_uexpr) {
sblock = statement_subexpr (sblock, e->e.expr.e1, op);
(*op)->type = ev_void;
(*op)->type = ev_pointer;
}
return sblock;
}