aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/utils.c')
-rw-r--r--gcc/ada/utils.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/ada/utils.c b/gcc/ada/utils.c
index 1cce8da..202818d 100644
--- a/gcc/ada/utils.c
+++ b/gcc/ada/utils.c
@@ -1096,8 +1096,7 @@ rest_of_record_type_compilation (tree record_type)
/* Strip off any conversions. */
while (TREE_CODE (offset) == NON_LVALUE_EXPR
- || TREE_CODE (offset) == NOP_EXPR
- || TREE_CODE (offset) == CONVERT_EXPR)
+ || CONVERT_EXPR_P (offset))
offset = TREE_OPERAND (offset, 0);
/* An offset which is a bitwise AND with a negative power of 2
@@ -3788,7 +3787,7 @@ remove_conversions (tree exp, bool true_address)
break;
case VIEW_CONVERT_EXPR: case NON_LVALUE_EXPR:
- case NOP_EXPR: case CONVERT_EXPR:
+ CASE_CONVERT:
return remove_conversions (TREE_OPERAND (exp, 0), true_address);
default: