diff options
Diffstat (limited to 'gcc/gcc/elna-tree.cc')
| -rw-r--r-- | gcc/gcc/elna-tree.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gcc/elna-tree.cc b/gcc/gcc/elna-tree.cc index 7e9197f..690cf41 100644 --- a/gcc/gcc/elna-tree.cc +++ b/gcc/gcc/elna-tree.cc @@ -108,8 +108,8 @@ namespace elna::gcc tree do_pointer_arithmetic(boot::binary_operator binary_operator, tree left, tree right, location_t operation_location) { - tree left_type = get_qualified_type(TREE_TYPE(left), TYPE_UNQUALIFIED); - tree right_type = get_qualified_type(TREE_TYPE(right), TYPE_UNQUALIFIED); + tree left_type = TYPE_MAIN_VARIANT(TREE_TYPE(left)); + tree right_type = TYPE_MAIN_VARIANT(TREE_TYPE(right)); if (binary_operator == boot::binary_operator::sum) { tree pointer{ NULL_TREE }; |
