aboutsummaryrefslogtreecommitdiff
path: root/libcc1
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2017-07-13 12:38:32 +0000
committerNathan Sidwell <nathan@acm.org>2017-07-13 12:38:32 +0000
commitab4bbbf71a5204746f7422935b01c96f5ee0b3fb (patch)
treed6f6c0838ec98a14a3ad91631514a657f7e97485 /libcc1
parent4c8ee4f90bb1b4a9aed818c2119c7ba993bae427 (diff)
revert previous premature commit
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@250181 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcc1')
-rw-r--r--libcc1/libcp1plugin.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc
index d7bf5a29d6d..8dd5e673838 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_FIELDS (current_class_type) == decl)
+ && TYPE_METHODS (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_FIELDS (current_class_type) == decl);
- TYPE_FIELDS (current_class_type)
- = nreverse (TYPE_FIELDS (current_class_type));
+ gcc_assert (TYPE_METHODS (current_class_type) == decl);
+ TYPE_METHODS (current_class_type)
+ = nreverse (TYPE_METHODS (current_class_type));
DECL_CHAIN (decl) = save;
}