[qfcc] Unalias expressions when checking for math values

Fixes some ICEs when trying to fold constants in geometric algebra.
This commit is contained in:
Bill Currie 2023-08-26 11:48:23 +09:00
parent 81b57903fc
commit 91edc5d177

View file

@ -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;
}