summaryrefslogtreecommitdiff
path: root/src/mods/Parser.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/mods/Parser.zig')
-rw-r--r--src/mods/Parser.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mods/Parser.zig b/src/mods/Parser.zig
index 6883fd3..48a8225 100644
--- a/src/mods/Parser.zig
+++ b/src/mods/Parser.zig
@@ -448,6 +448,7 @@ fn parseElemsec(self: *Parser) !void {
pub const Func = struct {
locals: []Valtype,
code: []const u8,
+ ir: IR,
};
const Local = struct {
n: u32,
@@ -477,6 +478,7 @@ fn parseCode(self: *Parser) !Func {
const func = Func{
.locals = try self.allocator.alloc(Valtype, local_count),
.code = &.{},
+ .ir = ir,
};
var li: usize = 0;