use the correct type when taking the address of a pointer derefernece

This commit is contained in:
Bill Currie 2003-05-13 19:42:14 +00:00
parent dd39fde9cf
commit f59f766af1
2 changed files with 2 additions and 2 deletions

View File

@ -2097,7 +2097,7 @@ address_expr (expr_t *e1, expr_t *e2, type_t *t)
e = e1->e.expr.e1;
type = get_type (e)->aux_type;
if (e->type == ex_expr && e->e.expr.op == '.') {
e->e.expr.type = pointer_type (e->e.expr.type);
e->e.expr.type = e->e.expr.type;
e->e.expr.op = '&';
}
break;