* decl.c (reshape_init): Remove unreachable code.
From-SVN: r69741
This commit is contained in:
parent
a4878735c2
commit
ee20f4ee2b
|
@ -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>
|
2003-07-24 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
|
||||||
|
|
||||||
PR c++/11513
|
PR c++/11513
|
||||||
|
|
|
@ -7465,13 +7465,7 @@ reshape_init (tree type, tree *initp)
|
||||||
old_init_value = (TREE_CODE (*initp) == TREE_LIST
|
old_init_value = (TREE_CODE (*initp) == TREE_LIST
|
||||||
? TREE_VALUE (*initp) : old_init);
|
? TREE_VALUE (*initp) : old_init);
|
||||||
|
|
||||||
/* For some parse errors, OLD_INIT_VALUE may be NULL. */
|
my_friendly_assert (old_init_value, 20030723);
|
||||||
if (!old_init_value)
|
|
||||||
{
|
|
||||||
my_friendly_assert (TREE_CODE (old_init) == TREE_LIST, 20021202);
|
|
||||||
TREE_VALUE (old_init) = error_mark_node;
|
|
||||||
return old_init;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* If the initializer is brace-enclosed, pull initializers from the
|
/* If the initializer is brace-enclosed, pull initializers from the
|
||||||
enclosed elements. Advance past the brace-enclosed initializer
|
enclosed elements. Advance past the brace-enclosed initializer
|
||||||
|
|
Loading…
Reference in New Issue