mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 09:22:43 +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;
|
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 = new_unary_expr ('A', expr);
|
||||||
alias->e.expr.type = type;
|
alias->e.expr.type = type;
|
||||||
//if (expr->type == ex_uexpr && expr->e.expr.op == 'A')
|
//if (expr->type == ex_uexpr && expr->e.expr.op == 'A')
|
||||||
|
|
Loading…
Reference in a new issue