diff options
| author | gingerBill <bill@gingerbill.org> | 2021-11-14 15:12:37 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-11-14 15:12:37 +0000 |
| commit | 3f038428a7f282468011415db76da4bf08ddb67c (patch) | |
| tree | 70712155e0f94b43754fd8a28bf40939b8228d0f /src/llvm_backend.cpp | |
| parent | b9701340b8faff107fe6a515d5de429141508f48 (diff) | |
Begin minimizing `Ast` size
Diffstat (limited to 'src/llvm_backend.cpp')
| -rw-r--r-- | src/llvm_backend.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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(); } } } |