mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Alias value expressions by aliasing the value.
This keeps constant expressions constant, even through aliasing.
This commit is contained in:
parent
b295524385
commit
22db05dc9c
1 changed files with 2 additions and 0 deletions
|
@ -877,6 +877,8 @@ new_alias_expr (type_t *type, expr_t *expr)
|
|||
{
|
||||
expr_t *alias;
|
||||
|
||||
if (expr->type == ex_value)
|
||||
return new_value_expr (alias_value (expr->e.value, type));
|
||||
alias = new_unary_expr ('A', expr);
|
||||
alias->e.expr.type = type;
|
||||
//if (expr->type == ex_uexpr && expr->e.expr.op == 'A')
|
||||
|
|
Loading…
Reference in a new issue