diff options
Diffstat (limited to 'src/codegen')
| -rw-r--r-- | src/codegen/wasm.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/wasm.zig b/src/codegen/wasm.zig index 5be26de7cb..34e0b2f9b5 100644 --- a/src/codegen/wasm.zig +++ b/src/codegen/wasm.zig @@ -161,7 +161,6 @@ pub const Context = struct { pub fn gen(self: *Context) InnerError!void { assert(self.code.items.len == 0); try self.genFunctype(); - const writer = self.code.writer(); // Write instructions // TODO: check for and handle death of instructions @@ -194,6 +193,7 @@ pub const Context = struct { } } + const writer = self.code.writer(); try writer.writeByte(wasm.opcode(.end)); // Fill in the size of the generated code to the reserved space at the |
