Provide record initialization syntax

This commit is contained in:
2025-02-13 22:54:47 +01:00
parent 62d9398772
commit c564847c6b
7 changed files with 115 additions and 56 deletions

View File

@ -62,6 +62,11 @@ namespace gcc
return type == NULL_TREE || type == void_type_node;
}
bool is_record_type(tree type)
{
return TREE_CODE(type) == RECORD_TYPE;
}
bool are_compatible_pointers(tree lhs, tree rhs)
{
tree lhs_type = TREE_TYPE(lhs);