Skip to content

Commit

Permalink
Check size node code instead of size node only in composite_type.
Browse files Browse the repository at this point in the history
  • Loading branch information
vnmakarov committed May 14, 2024
1 parent 1fc5f14 commit b19b2cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c2mir/c2mir.c
Original file line number Diff line number Diff line change
Expand Up @@ -5981,7 +5981,7 @@ static struct type composite_type (c2m_ctx_t c2m_ctx, struct type *tp1, struct t

t.u.arr_type = arr_type = reg_malloc (c2m_ctx, sizeof (struct arr_type));
*arr_type = *tp1->u.arr_type;
if (arr_type->size == N_IGNORE) arr_type->size = tp2->u.arr_type->size;
if (arr_type->size->code == N_IGNORE) arr_type->size = tp2->u.arr_type->size;
*arr_type->el_type
= composite_type (c2m_ctx, tp1->u.arr_type->el_type, tp2->u.arr_type->el_type);
} else if (tp1->mode == TM_FUNC) { /* ??? */
Expand Down

0 comments on commit b19b2cf

Please sign in to comment.