diff --git a/core_compiler.cpp b/core_compiler.cpp index 51a6977..7097d05 100644 --- a/core_compiler.cpp +++ b/core_compiler.cpp @@ -83,9 +83,9 @@ parse_init(Parse_Ctx *ctx, Arena *perm_allocator, Allocator *heap_allocator){ pctx = ctx; ctx->perm = perm_allocator; ctx->heap = heap_allocator; - ctx->gen = {ctx->heap}; ctx->type_map = {ctx->heap}; - ctx->helper_builder= {ctx->heap}; + ctx->gen = {ctx->perm}; + ctx->helper_builder= {ctx->perm}; ctx->scope_ids = 1; bigint_allocator = ctx->perm; arena_init(&ctx->stage_arena, "Compiler stage arena"_s);