diff mbox

[C++] Remove dead code

Message ID 5319B160.9090708@oracle.com
State New
Headers show

Commit Message

Paolo Carlini March 7, 2014, 11:45 a.m. UTC
Hi,

while looking into c++/58609 I noticed this dead code. Can I remove it? 
Tested x86_64-linux.

Thanks,
Paolo.

/////////////////
2014-03-07  Paolo Carlini  <paolo.carlini@oracle.com>

	* decl.c (check_initializer): Remove dead code.

Comments

Jason Merrill March 7, 2014, 1:50 p.m. UTC | #1
OK.

Jason
diff mbox

Patch

Index: decl.c
===================================================================
--- decl.c	(revision 208397)
+++ decl.c	(working copy)
@@ -5603,7 +5603,6 @@  check_initializer (tree decl, tree init, int flags
 {
   tree type = TREE_TYPE (decl);
   tree init_code = NULL;
-  tree extra_init = NULL_TREE;
   tree core_type;
 
   /* Things that are going to be initialized need to have complete
@@ -5799,9 +5798,6 @@  check_initializer (tree decl, tree init, int flags
   if (init && init != error_mark_node)
     init_code = build2 (INIT_EXPR, type, decl, init);
 
-  if (extra_init)
-    init_code = add_stmt_to_compound (extra_init, init_code);
-
   if (init_code && DECL_IN_AGGR_P (decl))
     {
       static int explained = 0;