mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 12:31:10 +00:00
[qfcc] Unalias expressions when checking for math values
Fixes some ICEs when trying to fold constants in geometric algebra.
This commit is contained in:
parent
81b57903fc
commit
91edc5d177
1 changed files with 3 additions and 0 deletions
|
@ -1267,6 +1267,9 @@ is_pointer_val (expr_t *e)
|
|||
int
|
||||
is_math_val (expr_t *e)
|
||||
{
|
||||
while (e->type == ex_alias) {
|
||||
e = e->e.alias.expr;
|
||||
}
|
||||
if (e->type == ex_value && is_math (e->e.value->type)) {
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue