aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_stmt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-11-14 15:12:37 +0000
committergingerBill <bill@gingerbill.org>2021-11-14 15:12:37 +0000
commit3f038428a7f282468011415db76da4bf08ddb67c (patch)
tree70712155e0f94b43754fd8a28bf40939b8228d0f /src/llvm_backend_stmt.cpp
parentb9701340b8faff107fe6a515d5de429141508f48 (diff)
Begin minimizing `Ast` size
Diffstat (limited to 'src/llvm_backend_stmt.cpp')
-rw-r--r--src/llvm_backend_stmt.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/llvm_backend_stmt.cpp b/src/llvm_backend_stmt.cpp
index 9d3d2c949..ec8ded7fa 100644
--- a/src/llvm_backend_stmt.cpp
+++ b/src/llvm_backend_stmt.cpp
@@ -212,8 +212,9 @@ void lb_open_scope(lbProcedure *p, Scope *s) {
unsigned column = cast(unsigned)token.pos.column;
LLVMMetadataRef file = nullptr;
- if (s->node->file != nullptr) {
- file = lb_get_llvm_metadata(m, s->node->file);
+ AstFile *ast_file = s->node->file();
+ if (ast_file != nullptr) {
+ file = lb_get_llvm_metadata(m, ast_file);
}
LLVMMetadataRef scope = nullptr;
if (p->scope_stack.count > 0) {