@@ -3207,15 +3207,9 @@ struct GTY(()) lang_decl {
3207
3207
/* In VIEW_CONVERT_EXPR, set when this node is a const wrapper. Used to
3208
3208
constify entities inside contract assertions. */
3209
3209
3210
- #define EXPR_CONTRACT_CONST_WRAPPER_P (NODE ) \
3210
+ #define CONTRACT_CONSTIFY_EXPR_P (NODE ) \
3211
3211
(TREE_CHECK (NODE, VIEW_CONVERT_EXPR)->base .private_flag )
3212
3212
3213
- /* Remove any VIEW_CONVERT_EXPR that's used to constify an entity inside a
3214
- contract assertion. */
3215
-
3216
- #define STRIP_ANY_CONTRACT_CONST_WRAPPER (EXP ) \
3217
- (EXP) = tree_strip_any_contract_const_wrapper (CONST_CAST_TREE (EXP))
3218
-
3219
3213
/* For a FUNCTION_DECL or a VAR_DECL, the language linkage for the
3220
3214
declaration. Some entities (like a member function in a local
3221
3215
class, or a local variable) do not have linkage at all, and this
@@ -9021,15 +9015,16 @@ contract_const_wrapper_p (const_tree exp)
9021
9015
/* A wrapper node has code VIEW_CONVERT_EXPR, and the flag
9022
9016
EXPR_LOCATION_WRAPPER_P is set. */
9023
9017
if (TREE_CODE (exp) == VIEW_CONVERT_EXPR
9024
- && EXPR_CONTRACT_CONST_WRAPPER_P (exp))
9018
+ && CONTRACT_CONSTIFY_EXPR_P (exp))
9025
9019
return true ;
9026
9020
return false ;
9027
9021
}
9028
9022
9029
- /* Implementation of STRIP_ANY_CONTRACT_CONST_WRAPPER. */
9023
+ /* If EXP is a CONTRACT_CONSTIFY_EXPR_P, return the wrapped expression.
9024
+ Otherwise, do nothing. */
9030
9025
9031
9026
inline tree
9032
- tree_strip_any_contract_const_wrapper (tree exp)
9027
+ strip_contract_constify_expr (tree exp)
9033
9028
{
9034
9029
if (contract_const_wrapper_p (exp))
9035
9030
return TREE_OPERAND (exp, 0 );
0 commit comments