From 3f038428a7f282468011415db76da4bf08ddb67c Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 14 Nov 2021 15:12:37 +0000 Subject: Begin minimizing `Ast` size --- src/llvm_backend.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/llvm_backend.cpp') diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index e468f3032..5acd2a80f 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -454,7 +454,7 @@ lbValue lb_generate_anonymous_proc_lit(lbModule *m, String const &prefix_name, A token.kind = Token_Ident; token.string = name; Entity *e = alloc_entity_procedure(nullptr, token, type, pl->tags); - e->file = expr->file; + e->file = expr->file(); e->decl_info = pl->decl; e->code_gen_module = m; e->flags |= EntityFlag_ProcBodyChecked; @@ -1278,8 +1278,8 @@ void lb_generate_code(lbGenerator *gen) { if (Entity *entry_point = m->info->entry_point) { if (Ast *ident = entry_point->identifier.load()) { - if (ident->file) { - init_file = ident->file; + if (ident->file_id) { + init_file = ident->file(); } } } -- cgit v1.2.3