]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* decl.c (reshape_init): Remove unreachable code.
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 24 Jul 2003 12:56:34 +0000 (12:56 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 24 Jul 2003 12:56:34 +0000 (12:56 +0000)
From-SVN: r69741

gcc/cp/ChangeLog
gcc/cp/decl.c

index 337b372e27e8b820c5d4cc75252e301938eaf654..308b70cb919feccb728b2dace1005438189eee38 100644 (file)
@@ -1,3 +1,7 @@
+2003-07-24  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * decl.c (reshape_init): Remove unreachable code.
+
 2003-07-24  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
 
        PR c++/11513
index 7f36c99e28aca7b759702fdcc7790a7686e733ae..6d2f09773a2c1915b685a9b63a023f1d4e1aa23d 100644 (file)
@@ -7465,13 +7465,7 @@ reshape_init (tree type, tree *initp)
   old_init_value = (TREE_CODE (*initp) == TREE_LIST
                    ? TREE_VALUE (*initp) : old_init);
 
-  /* For some parse errors, OLD_INIT_VALUE may be NULL.  */
-  if (!old_init_value)
-    {
-      my_friendly_assert (TREE_CODE (old_init) == TREE_LIST, 20021202);
-      TREE_VALUE (old_init) = error_mark_node;
-      return old_init;
-    }
+  my_friendly_assert (old_init_value, 20030723);
 
   /* If the initializer is brace-enclosed, pull initializers from the
      enclosed elements.  Advance past the brace-enclosed initializer