Skip to content

Commit d9c01b3

Browse files
fix: when load aot init expr,no type_idx set. (#4094)
Fix an assertion from *gc_object.c line 91* `bh_assert(rtt_type->type_flag == WASM_TYPE_STRUCT;`
1 parent f2ef9ee commit d9c01b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/iwasm/aot/aot_loader.c

+1
Original file line numberDiff line numberDiff line change
@@ -1251,6 +1251,7 @@ load_init_expr(const uint8 **p_buf, const uint8 *buf_end, AOTModule *module,
12511251
}
12521252
free_if_fail = true;
12531253
init_values->count = field_count;
1254+
init_values->type_idx = type_idx;
12541255
expr->u.data = init_values;
12551256

12561257
if (type_idx >= module->type_count) {

0 commit comments

Comments
 (0)