summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2017-07-13 12:35:52 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2017-07-13 12:35:52 +0000
commitd4660e26e5610e3f774ae273dbc4c9700fee93c5 (patch)
tree58bdb537ffaaa38ad2258d7d60b31708c75338fc
parent30ce3bcb2e0ab8c83b02a77c83aa28d68ff2ee57 (diff)
downloadgcc-d4660e26e5610e3f774ae273dbc4c9700fee93c5.tar.gz
* libcp1plugin.cc (plugin_build_decl): Use
DECL_CXX_{CON,DE}STRUCTOR directly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250180 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libcc1/libcp1plugin.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc
index 8dd5e673838..d7bf5a29d6d 100644
--- a/libcc1/libcp1plugin.cc
+++ b/libcc1/libcp1plugin.cc
@@ -1556,7 +1556,7 @@ plugin_build_decl (cc1_plugin::connection *self,
if ((ctor || dtor)
/* Don't crash after a duplicate declaration of a cdtor. */
- && TYPE_METHODS (current_class_type) == decl)
+ && TYPE_FIELDS (current_class_type) == decl)
{
/* ctors and dtors clones are chained after DECL.
However, we create the clones before TYPE_METHODS is
@@ -1568,9 +1568,9 @@ plugin_build_decl (cc1_plugin::connection *self,
tree save = DECL_CHAIN (decl);
DECL_CHAIN (decl) = NULL_TREE;
clone_function_decl (decl, /*update_methods=*/true);
- gcc_assert (TYPE_METHODS (current_class_type) == decl);
- TYPE_METHODS (current_class_type)
- = nreverse (TYPE_METHODS (current_class_type));
+ gcc_assert (TYPE_FIELDS (current_class_type) == decl);
+ TYPE_FIELDS (current_class_type)
+ = nreverse (TYPE_FIELDS (current_class_type));
DECL_CHAIN (decl) = save;
}