From: Marek Polacek Date: Tue, 13 Aug 2019 15:02:30 +0000 (+0000) Subject: * cp-tree.h (DECL_MUTABLE_P): Use FIELD_DECL_CHECK. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82614ffbfdb57dcc490a752f0d398bbe2a774864;p=gcc.git * cp-tree.h (DECL_MUTABLE_P): Use FIELD_DECL_CHECK. From-SVN: r274381 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e32582514f7..5f1dff89c0d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2019-08-13 Marek Polacek + + * cp-tree.h (DECL_MUTABLE_P): Use FIELD_DECL_CHECK. + 2019-08-10 Jakub Jelinek * parser.c (cp_parser_omp_clause_name): Parse device_type. diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 72ee1d61e97..bdb7778c04b 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -3065,9 +3065,9 @@ struct GTY(()) lang_decl { (DECL_NONSTATIC_MEMBER_FUNCTION_P (NODE) \ || TREE_CODE (NODE) == FIELD_DECL) -/* Nonzero for _DECL means that this member object type +/* Nonzero for a FIELD_DECL means that this member object type is mutable. */ -#define DECL_MUTABLE_P(NODE) (DECL_LANG_FLAG_0 (NODE)) +#define DECL_MUTABLE_P(NODE) (DECL_LANG_FLAG_0 (FIELD_DECL_CHECK (NODE))) /* Nonzero for _DECL means that this constructor or conversion function is non-converting. */