last_bb = pair_p->new;
old_first_stmt = first_stmt (pair_p->old);
- aop_assert (old_first_stmt != NULL);
/* duplicate_block() does not copy initial labels. Calling
gimple_block_label() on the duplicated block will create the
label for us. */
- if (gimple_code (old_first_stmt) == GIMPLE_LABEL)
+ if (old_first_stmt != NULL
+ && gimple_code (old_first_stmt) == GIMPLE_LABEL)
{
label_pair lblpair;
lblpair.old = gimple_block_label (pair_p->old);
{
gsi_next (&gsi);
}
- gcc_assert(!gsi_end_p(gsi));
for (; !gsi_end_p (gsi); gsi_next (&gsi))
{