mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-20 18:52:28 +00:00
[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:
parent
57b2751732
commit
4fa203852a
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue