Stage arena is not a sub
This commit is contained in:
@@ -242,8 +242,8 @@ parse_init(Parse_Ctx *ctx, Allocator *perm_allocator, Allocator *heap_allocator)
|
||||
ctx->ordered_decls = {ctx->heap};
|
||||
ctx->type_map = {ctx->heap};
|
||||
ctx->modules = {ctx->heap};
|
||||
ctx->stage_arena = arena_sub(perm_allocator, mib(4), "Compiler stage arena"_s);
|
||||
bigint_allocator = ctx->perm;
|
||||
arena_init(&ctx->stage_arena, "Compiler stage arena"_s);
|
||||
|
||||
lex_init(ctx->perm, ctx->heap, ctx);
|
||||
ctx->builtins = ast_module(ctx->intern("builtins"_s));
|
||||
|
||||
Reference in New Issue
Block a user