This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Allow generate_element_init in tree-sra.c to fail
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Cc: pinskia at physics dot uc dot edu, gcc-patches at gcc dot gnu dot org
- Date: Mon, 5 Jul 2004 12:28:51 -0400 (EDT)
- Subject: Re: Allow generate_element_init in tree-sra.c to fail
>
> This is wrong as we were checking for error_mark_node before and now we
> are checking for a null pointer.
>
> I don't completely understand how it worked before without checking for
> a null pointer, but the check for errror_mark_node has become redundant
> because the init function will return false in that case.
Well it looks like we can no longer call scalarize_init with NULL, as the
comment says before that function, we treat NULL as an empty constructor.
Andrew Pinski