| ... | ... | @@ -4997,7 +4997,7 @@ static IrInstSrc *ir_build_wasm_memory_size_src(IrBuilderSrc *irb, Scope *scope, |
| 4997 | 4997 | static IrInstGen *ir_build_wasm_memory_size_gen(IrAnalyze *ira, IrInst *source_instr, IrInstGen *index) { |
| 4998 | 4998 | IrInstGenWasmMemorySize *instruction = ir_build_inst_gen<IrInstGenWasmMemorySize>(&ira->new_irb, |
| 4999 | 4999 | source_instr->scope, source_instr->source_node); |
| 5000 | | instruction->base.value->type = ira->codegen->builtin_types.entry_i32; |
| 5000 | instruction->base.value->type = ira->codegen->builtin_types.entry_u32; |
| 5001 | 5001 | instruction->index = index; |
| 5002 | 5002 | |
| 5003 | 5003 | ir_ref_inst_gen(index); |
| ... | ... | @@ -5019,7 +5019,7 @@ static IrInstSrc *ir_build_wasm_memory_grow_src(IrBuilderSrc *irb, Scope *scope, |
| 5019 | 5019 | static IrInstGen *ir_build_wasm_memory_grow_gen(IrAnalyze *ira, IrInst *source_instr, IrInstGen *index, IrInstGen *delta) { |
| 5020 | 5020 | IrInstGenWasmMemoryGrow *instruction = ir_build_inst_gen<IrInstGenWasmMemoryGrow>(&ira->new_irb, |
| 5021 | 5021 | source_instr->scope, source_instr->source_node); |
| 5022 | | instruction->base.value->type = ira->codegen->builtin_types.entry_i32; |
| 5022 | instruction->base.value->type = ira->codegen->builtin_types.entry_u32; |
| 5023 | 5023 | instruction->index = index; |
| 5024 | 5024 | instruction->delta = delta; |
| 5025 | 5025 | |
| ... | ... | @@ -27757,9 +27757,9 @@ static IrInstGen *ir_analyze_instruction_wasm_memory_size(IrAnalyze *ira, IrInst |
| 27757 | 27757 | if (type_is_invalid(index->value->type)) |
| 27758 | 27758 | return ira->codegen->invalid_inst_gen; |
| 27759 | 27759 | |
| 27760 | | ZigType *i32_type = ira->codegen->builtin_types.entry_i32; |
| 27760 | ZigType *u32 = ira->codegen->builtin_types.entry_u32; |
| 27761 | 27761 | |
| 27762 | | IrInstGen *casted_index = ir_implicit_cast(ira, index, i32_type); |
| 27762 | IrInstGen *casted_index = ir_implicit_cast(ira, index, u32); |
| 27763 | 27763 | if (type_is_invalid(casted_index->value->type)) |
| 27764 | 27764 | return ira->codegen->invalid_inst_gen; |
| 27765 | 27765 | |
| ... | ... | @@ -27778,9 +27778,9 @@ static IrInstGen *ir_analyze_instruction_wasm_memory_grow(IrAnalyze *ira, IrInst |
| 27778 | 27778 | if (type_is_invalid(index->value->type)) |
| 27779 | 27779 | return ira->codegen->invalid_inst_gen; |
| 27780 | 27780 | |
| 27781 | | ZigType *i32_type = ira->codegen->builtin_types.entry_i32; |
| 27781 | ZigType *u32 = ira->codegen->builtin_types.entry_u32; |
| 27782 | 27782 | |
| 27783 | | IrInstGen *casted_index = ir_implicit_cast(ira, index, i32_type); |
| 27783 | IrInstGen *casted_index = ir_implicit_cast(ira, index, u32); |
| 27784 | 27784 | if (type_is_invalid(casted_index->value->type)) |
| 27785 | 27785 | return ira->codegen->invalid_inst_gen; |
| 27786 | 27786 | |
| ... | ... | @@ -27788,7 +27788,7 @@ static IrInstGen *ir_analyze_instruction_wasm_memory_grow(IrAnalyze *ira, IrInst |
| 27788 | 27788 | if (type_is_invalid(delta->value->type)) |
| 27789 | 27789 | return ira->codegen->invalid_inst_gen; |
| 27790 | 27790 | |
| 27791 | | IrInstGen *casted_delta = ir_implicit_cast(ira, delta, i32_type); |
| 27791 | IrInstGen *casted_delta = ir_implicit_cast(ira, delta, u32); |
| 27792 | 27792 | if (type_is_invalid(casted_delta->value->type)) |
| 27793 | 27793 | return ira->codegen->invalid_inst_gen; |
| 27794 | 27794 | |