Skip to content

Commit 038e2fc

Browse files
committed
Removed some redundant logic
1 parent 58aae86 commit 038e2fc

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

core/iwasm/interpreter/wasm_loader.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -866,14 +866,6 @@ load_init_expr(WASMModule *module, const uint8 **p_buf, const uint8 *buf_end,
866866

867867
if (!is_byte_a_type(type1)
868868
|| wasm_is_type_multi_byte_type(type1)) {
869-
p--;
870-
read_leb_uint32(p, p_end, type_idx);
871-
if (!check_type_index(module, module->type_count, type_idx,
872-
error_buf, error_buf_size))
873-
goto fail;
874-
875-
wasm_set_refheaptype_typeidx(&cur_ref_type.ref_ht_typeidx,
876-
true, type_idx);
877869
if (!push_const_expr_stack(&const_expr_ctx, flag,
878870
cur_ref_type.ref_type,
879871
&cur_ref_type, 0, &cur_value,

0 commit comments

Comments
 (0)