Skip to content

Commit b19b2cf

Browse files
committed
Check size node code instead of size node only in composite_type.
1 parent 1fc5f14 commit b19b2cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c2mir/c2mir.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -5981,7 +5981,7 @@ static struct type composite_type (c2m_ctx_t c2m_ctx, struct type *tp1, struct t
59815981

59825982
t.u.arr_type = arr_type = reg_malloc (c2m_ctx, sizeof (struct arr_type));
59835983
*arr_type = *tp1->u.arr_type;
5984-
if (arr_type->size == N_IGNORE) arr_type->size = tp2->u.arr_type->size;
5984+
if (arr_type->size->code == N_IGNORE) arr_type->size = tp2->u.arr_type->size;
59855985
*arr_type->el_type
59865986
= composite_type (c2m_ctx, tp1->u.arr_type->el_type, tp2->u.arr_type->el_type);
59875987
} else if (tp1->mode == TM_FUNC) { /* ??? */

0 commit comments

Comments
 (0)