Cast expressions

This commit is contained in:
2025-01-28 11:21:02 +01:00
parent 18d8ded239
commit be1a56a557
9 changed files with 183 additions and 136 deletions

View File

@ -28,6 +28,12 @@ namespace gcc
&& TYPE_MAIN_VARIANT(TREE_TYPE(type)) == char_type_node;
}
bool is_integral_type(tree type)
{
gcc_assert(TYPE_P(type));
return type == integer_type_node || type == unsigned_type_node;
}
tree tree_chain_base::head()
{
return first;