[qfcc] Use offset alias offset when creating alias of offset alias

Yes, that's correct. It happens when casting the address of a structure
field (for the test case this fixes, vector field).
This commit is contained in:
Bill Currie 2020-03-04 00:55:31 +09:00
parent 57b2751732
commit 4fa203852a

View file

@ -2065,6 +2065,8 @@ address_expr (expr_t *e1, expr_t *e2, type_t *t)
t = e1->e.expr.type;
if (e2) {
e2 = binary_expr ('+', e1->e.expr.e2, e2);
} else {
e2 = e1->e.expr.e2;
}
return address_expr (e1->e.expr.e1, e2, t);
}