Add more check_is_operand_compound_lit_constant uses

This commit is contained in:
gingerBill
2025-09-28 23:53:07 +01:00
parent dd15a5bc8e
commit 4877214f34
3 changed files with 28 additions and 7 deletions

View File

@@ -2536,7 +2536,10 @@ gb_internal bool elem_type_can_be_constant(Type *t) {
if (t == t_invalid) {
return false;
}
if (is_type_any(t) || is_type_raw_union(t)) {
if (is_type_any(t)) {
return false;
}
if (is_type_raw_union(t)) {
return false;
}
if (is_type_union(t)) {