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 2/3] [asan] Factorize condition insertion code out of build_check_stmt


On Tue, Oct 23, 2012 at 03:08:07PM +0200, Dodji Seketeli wrote:
> +static gimple_stmt_iterator
> +create_cond_insert_point_before_iter (gimple_stmt_iterator *iter,
> +				      bool then_more_likely_p,
> +				      basic_block *then_block,
> +				      basic_block *fallthrough_block)
> +{
> +  gcc_assert (then_block != NULL && fallthrough_block != NULL);

I think this assert is useless, if they are NULL

> +  *then_block = then_bb;
> +  *fallthrough_block = fallthru_bb;

the above two stmts will just crash and be as useful for debugging
as the assert.

	Jakub


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