From 35c395caf924d6605706aeee5cedaf1fd42d47b1 Mon Sep 17 00:00:00 2001 From: Krzosa Karol Date: Fri, 30 Sep 2022 12:27:08 +0200 Subject: [PATCH] Replace heap for string builders, not sure why they were heap based --- core_compiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);