Set STUB_DECL for unique types

This commit is contained in:
2025-04-23 09:28:58 +02:00
parent 09ad85b058
commit a02e053ed2
5 changed files with 28 additions and 16 deletions

View File

@ -37,10 +37,10 @@ namespace elna::gcc
return is_integral_type(type) || type == elna_float_type_node;
}
bool is_array_type(tree type)
bool is_unique_type(tree type)
{
gcc_assert(TYPE_P(type));
return TREE_CODE(type) == ARRAY_TYPE;
return RECORD_OR_UNION_TYPE_P(type) || TREE_CODE(type) == ENUMERAL_TYPE;
}
bool is_void_type(tree type)