Skip to content

Commit

Permalink
some update
Browse files Browse the repository at this point in the history
  • Loading branch information
TianlongLiang committed Aug 24, 2023
1 parent 95cc8cf commit d0e0b15
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions core/iwasm/compilation/aot_compiler.c
Expand Up @@ -638,6 +638,8 @@ aot_compile_func(AOTCompContext *comp_ctx, uint32 func_index)
read_leb_uint32(frame_ip, frame_ip_end, type_index);
if (opcode == WASM_OP_ARRAY_NEW_CANON_FIXED)
read_leb_uint32(frame_ip, frame_ip_end, array_len);
else
array_len = 0;
if (!aot_compile_op_array_new(
comp_ctx, func_ctx, type_index,
opcode == WASM_OP_ARRAY_NEW_CANON_DEFAULT,
Expand Down
4 changes: 2 additions & 2 deletions core/iwasm/compilation/aot_emit_gc.c
Expand Up @@ -858,8 +858,8 @@ aot_compile_op_array_new_data(AOTCompContext *comp_ctx,
AOTFuncContext *func_ctx, uint32 type_index,
uint32 data_seg_index)
{
LLVMValueRef array_length, data_seg_offset, rtt_type, elem_size, array_elem,
array_obj, cmp;
LLVMValueRef array_length, data_seg_offset, rtt_type,
elem_size = NULL, array_elem, array_obj, cmp;
LLVMBasicBlockRef check_rtt_type_succ, check_array_obj_succ;
/* Use for distinguish what type of element in array */
WASMArrayType *compile_time_array_type =
Expand Down
2 changes: 1 addition & 1 deletion core/iwasm/interpreter/wasm_runtime.c
Expand Up @@ -3764,7 +3764,7 @@ llvm_jit_rtt_type_new(WASMModuleInstance *module_inst, uint32 type_index)
korp_mutex *rtt_type_lock = &module->rtt_type_lock;

return wasm_rtt_type_new(defined_type, type_index, rtt_types,
rtt_type_count, &module->rtt_type_lock);
rtt_type_count, rtt_type_lock);
}

#endif /* end of WASM_ENABLE_GC != 0 */
Expand Down

0 comments on commit d0e0b15

Please sign in to comment.