diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2020-06-05 09:27:33 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-06-09 00:22:34 -0400 |
| commit | 52b97eeef1fbb72f1b0bd5d466383cad13a67d54 (patch) | |
| tree | 68c240e7cd0b6b48e9e4cb687b08c9d67b68e74f /src/ir.cpp | |
| parent | 057d97c093c81150a3761b50a1f646703b6cfd1b (diff) | |
| download | zig-52b97eeef1fbb72f1b0bd5d466383cad13a67d54.tar.gz zig-52b97eeef1fbb72f1b0bd5d466383cad13a67d54.zip | |
Return u32 in @wasmMemorySize instead of i32
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 86304ff448..887f0a2f9b 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -4997,7 +4997,7 @@ static IrInstSrc *ir_build_wasm_memory_size_src(IrBuilderSrc *irb, Scope *scope, static IrInstGen *ir_build_wasm_memory_size_gen(IrAnalyze *ira, IrInst *source_instr, IrInstGen *index) { IrInstGenWasmMemorySize *instruction = ir_build_inst_gen<IrInstGenWasmMemorySize>(&ira->new_irb, source_instr->scope, source_instr->source_node); - instruction->base.value->type = ira->codegen->builtin_types.entry_i32; + instruction->base.value->type = ira->codegen->builtin_types.entry_u32; instruction->index = index; ir_ref_inst_gen(index); |
