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: [PATCH][TUPLES] Two simple bug fixes.


2008/4/14 Richard Guenther <richard.guenther@gmail.com>:

>  why is the correct fix not removing this weird
>
>   i.bb = (i.ptr && i.ptr->stmt) ? gimple_bb (i.ptr->stmt) : NULL;
>
>  casing and instead
>
>   gcc_assert (i.ptr && i.ptr->stmt);
>   i.bb = gimple_bb (i.ptr->stmt);
>
>  ?

If the seq is empty, i.ptr points to NULL, hence the special casing.

-Doug


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