Commit d2884eca by Nathan Sidwell

revert previous premature commit

From-SVN: r250181
parent de0e7b1f
...@@ -1556,7 +1556,7 @@ plugin_build_decl (cc1_plugin::connection *self, ...@@ -1556,7 +1556,7 @@ plugin_build_decl (cc1_plugin::connection *self,
if ((ctor || dtor) if ((ctor || dtor)
/* Don't crash after a duplicate declaration of a cdtor. */ /* 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. /* ctors and dtors clones are chained after DECL.
However, we create the clones before TYPE_METHODS is However, we create the clones before TYPE_METHODS is
...@@ -1568,9 +1568,9 @@ plugin_build_decl (cc1_plugin::connection *self, ...@@ -1568,9 +1568,9 @@ plugin_build_decl (cc1_plugin::connection *self,
tree save = DECL_CHAIN (decl); tree save = DECL_CHAIN (decl);
DECL_CHAIN (decl) = NULL_TREE; DECL_CHAIN (decl) = NULL_TREE;
clone_function_decl (decl, /*update_methods=*/true); clone_function_decl (decl, /*update_methods=*/true);
gcc_assert (TYPE_FIELDS (current_class_type) == decl); gcc_assert (TYPE_METHODS (current_class_type) == decl);
TYPE_FIELDS (current_class_type) TYPE_METHODS (current_class_type)
= nreverse (TYPE_FIELDS (current_class_type)); = nreverse (TYPE_METHODS (current_class_type));
DECL_CHAIN (decl) = save; DECL_CHAIN (decl) = save;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment