mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
fix regression in translate-c
This commit is contained in:
parent
f4c244b3d0
commit
845be4ea3e
@ -166,7 +166,7 @@ pub fn translate(
|
||||
break :blk tree;
|
||||
};
|
||||
const arena = &tree.arena_allocator.allocator; // now we can reference the allocator
|
||||
errdefer arena.deinit();
|
||||
errdefer tree.arena_allocator.deinit();
|
||||
tree.tokens = ast.Tree.TokenList.init(arena);
|
||||
tree.errors = ast.Tree.ErrorList.init(arena);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user