| ... | @@ -4997,7 +4997,7 @@ static IrInstSrc *ir_build_wasm_memory_size_src(IrBuilderSrc *irb, Scope *scope, | ... | @@ -4997,7 +4997,7 @@ static IrInstSrc *ir_build_wasm_memory_size_src(IrBuilderSrc *irb, Scope *scope, |
| 4997 | static IrInstGen *ir_build_wasm_memory_size_gen(IrAnalyze *ira, IrInst *source_instr, IrInstGen *index) { | 4997 | static IrInstGen *ir_build_wasm_memory_size_gen(IrAnalyze *ira, IrInst *source_instr, IrInstGen *index) { |
| 4998 | IrInstGenWasmMemorySize *instruction = ir_build_inst_gen<IrInstGenWasmMemorySize>(&ira->new_irb, | 4998 | IrInstGenWasmMemorySize *instruction = ir_build_inst_gen<IrInstGenWasmMemorySize>(&ira->new_irb, |
| 4999 | source_instr->scope, source_instr->source_node); | 4999 | source_instr->scope, source_instr->source_node); |
| 5000 | instruction->base.value->type = ira->codegen->builtin_types.entry_u32; | 5000 | instruction->base.value->type = ira->codegen->builtin_types.entry_i32; |
| 5001 | instruction->index = index; | 5001 | instruction->index = index; |
| 5002 | | 5002 | |
| 5003 | ir_ref_inst_gen(index); | 5003 | ir_ref_inst_gen(index); |
| ... | @@ -5019,7 +5019,7 @@ static IrInstSrc *ir_build_wasm_memory_grow_src(IrBuilderSrc *irb, Scope *scope, | ... | @@ -5019,7 +5019,7 @@ static IrInstSrc *ir_build_wasm_memory_grow_src(IrBuilderSrc *irb, Scope *scope, |
| 5019 | static IrInstGen *ir_build_wasm_memory_grow_gen(IrAnalyze *ira, IrInst *source_instr, IrInstGen *index, IrInstGen *delta) { | 5019 | static IrInstGen *ir_build_wasm_memory_grow_gen(IrAnalyze *ira, IrInst *source_instr, IrInstGen *index, IrInstGen *delta) { |
| 5020 | IrInstGenWasmMemoryGrow *instruction = ir_build_inst_gen<IrInstGenWasmMemoryGrow>(&ira->new_irb, | 5020 | IrInstGenWasmMemoryGrow *instruction = ir_build_inst_gen<IrInstGenWasmMemoryGrow>(&ira->new_irb, |
| 5021 | source_instr->scope, source_instr->source_node); | 5021 | source_instr->scope, source_instr->source_node); |
| 5022 | instruction->base.value->type = ira->codegen->builtin_types.entry_u32; | 5022 | instruction->base.value->type = ira->codegen->builtin_types.entry_i32; |
| 5023 | instruction->index = index; | 5023 | instruction->index = index; |
| 5024 | instruction->delta = delta; | 5024 | instruction->delta = delta; |
| 5025 | | 5025 | |