Просмотр исходного кода

fix a wamrc debug mode compile issue (#4470)

Zhenwei Jin 6 месяцев назад
Родитель
Сommit
9e92f5ebe1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      core/iwasm/compilation/aot_emit_aot_file.c

+ 1 - 1
core/iwasm/compilation/aot_emit_aot_file.c

@@ -1905,7 +1905,7 @@ aot_emit_init_expr(uint8 *buf, uint8 *buf_end, uint32 *p_offset,
         {
             WASMArrayType *array_type = NULL;
 
-            bh_assert(expr->u.array_new_default.type_index
+            bh_assert(expr->u.unary.v.array_new_default.type_index
                       < module->type_count);
             array_type =
                 (WASMArrayType *)