Skip to content

Commit 9b9e938

Browse files
authored
Fix compilation errors (#3549)
The compilation errors were introduced by #3515 and occur in debug building when wasm mini loader is compiled or GC is enabled. And remove two wasm files in standalone test-running-modes case, which will be generated by run.sh.
1 parent 0418041 commit 9b9e938

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

core/iwasm/compilation/aot_emit_aot_file.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1977,7 +1977,7 @@ aot_emit_table_info(uint8 *buf, uint8 *buf_end, uint32 *p_offset,
19771977
if (comp_ctx->enable_gc
19781978
&& comp_data->import_tables[i].table_type.elem_ref_type) {
19791979
bh_assert(wasm_is_type_multi_byte_type(
1980-
comp_data->import_tables[i].elem_type));
1980+
comp_data->import_tables[i].table_type.elem_type));
19811981
EMIT_U32(comp_data->import_tables[i]
19821982
.table_type.elem_ref_type->ref_ht_common.heap_type);
19831983
}
@@ -2009,7 +2009,7 @@ aot_emit_table_info(uint8 *buf, uint8 *buf_end, uint32 *p_offset,
20092009
if (comp_ctx->enable_gc) {
20102010
if (comp_data->tables[i].table_type.elem_ref_type) {
20112011
bh_assert(wasm_is_type_multi_byte_type(
2012-
comp_data->tables[i].elem_type));
2012+
comp_data->tables[i].table_type.elem_type));
20132013
EMIT_U32(
20142014
comp_data->tables[i]
20152015
.table_type.elem_ref_type->ref_ht_common.heap_type);

core/iwasm/interpreter/wasm_mini_loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ load_table_import(const uint8 **p_buf, const uint8 *buf_end,
684684
read_leb_uint32(p, p_end, declare_init_size);
685685
if (declare_max_size_flag & 1) {
686686
read_leb_uint32(p, p_end, declare_max_size);
687-
bh_assert(table->init_size <= table->max_size);
687+
bh_assert(table->table_type.init_size <= table->table_type.max_size);
688688
}
689689

690690
adjust_table_max_size(declare_init_size, declare_max_size_flag,
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)