abs const fold

This commit is contained in:
kalsprite
2026-08-17 22:41:22 -07:00
parent 0be39571f6
commit 8189bb9730
2 changed files with 40 additions and 1 deletions

View File

@@ -4612,6 +4612,11 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
}
GB_ASSERT(!is_type_complex_or_quaternion(operand->type));
if (operand->mode == Addressing_Constant) {
operand->expr = call;
check_is_expressible(c, operand, operand->type);
}
break;
}