diff mbox

remove useless check

Message ID 54bea7ed-63d1-02f5-2f15-7e04d9ea34af@acm.org
State New
Headers show

Commit Message

Nathan Sidwell July 11, 2017, 12:23 p.m. UTC
In killing TYPE_METHODS I discovered this useless check.  We already cull these 
ctors from the methods just after creating the struct.

bootstrap with the continue turned into gcc_unreachable worked just fine.

applied to trunk.

nathan
diff mbox

Patch

Index: dwarf2out.c
===================================================================
--- dwarf2out.c	(revision 250090)
+++ dwarf2out.c	(working copy)
@@ -24207,10 +24207,6 @@  gen_member_die (tree type, dw_die_ref co
 	/* Don't include clones in the member list.  */
 	if (DECL_ABSTRACT_ORIGIN (member))
 	  continue;
-	/* Nor constructors for anonymous classes.  */
-	if (DECL_ARTIFICIAL (member)
-	    && dwarf2_name (member, 0) == NULL)
-	  continue;
 
 	child = lookup_decl_die (member);
 	if (child)