This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Block merging (updated)


Hello,

> On Tue, Jan 13, 2004 at 12:30:27PM +0100, Zdenek Dvorak wrote:
> > +   /* Merge the chains.  */
> > +   last = tsi_last (a->stmt_list);
> > +   tsi_link_after (&last, b->stmt_list, TSI_NEW_STMT);
> > +   b->stmt_list = alloc_stmt_list ();
> 
> Why not "b->stmt_list = NULL"?  We're about to remove the thing...

because we are going to call remove_bb to do it, which will try
to remove the statements, which would crash if it was NULL.

Zdenek


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]