libcp1plugin.cc (plugin_build_decl): Use DECL_CXX_{CON,DE}STRUCTOR directly.
authorNathan Sidwell <nathan@acm.org>
Wed, 12 Jul 2017 19:46:33 +0000 (19:46 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 12 Jul 2017 19:46:33 +0000 (19:46 +0000)
* libcp1plugin.cc (plugin_build_decl): Use
DECL_CXX_{CON,DE}STRUCTOR directly.

From-SVN: r250159

libcc1/ChangeLog
libcc1/libcp1plugin.cc

index dc1073410c510bf932b8cd5e92d3b6f2ef095140..a5acf0df000ed94647bb1d862f35d2c4fa37e84f 100644 (file)
@@ -1,3 +1,8 @@
+2017-07-12  Nathan Sidwell  <nathan@acm.org>
+
+       * libcp1plugin.cc (plugin_build_decl): Use
+       DECL_CXX_{CON,DE}STRUCTOR directly.
+
 2017-07-05  Richard Sandiford  <richard.sandiford@linaro.org>
 
        * libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE.
index ad33d7a780704002509452ff5861aa8fbe7fa9da..8dd5e673838728537b1fa408150ac5d63e531df0 100644 (file)
@@ -1419,9 +1419,9 @@ plugin_build_decl (cc1_plugin::connection *self,
       if (ctor || dtor)
        {
          if (ctor)
-           DECL_CONSTRUCTOR_P (decl) = 1;
+           DECL_CXX_CONSTRUCTOR_P (decl) = 1;
          if (dtor)
-           DECL_DESTRUCTOR_P (decl) = 1;
+           DECL_CXX_DESTRUCTOR_P (decl) = 1;
        }
       else
        {