diff options
| author | gingerBill <bill@gingerbill.org> | 2025-04-08 11:36:53 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2025-04-08 11:36:53 +0100 |
| commit | fe040d1bbd22c78081ffc1d45b3462f40f8eb17a (patch) | |
| tree | 005c8d5bca1c0e5508442fa0d7180036565b0b20 /src/llvm_backend_stmt.cpp | |
| parent | 77b5eebf8ce090839713fc59fe0f60045524043f (diff) | |
Propagate `@(link_section=<string>)` to nested declarations
Diffstat (limited to 'src/llvm_backend_stmt.cpp')
| -rw-r--r-- | src/llvm_backend_stmt.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/llvm_backend_stmt.cpp b/src/llvm_backend_stmt.cpp index 1f783b1be..a0b7e8340 100644 --- a/src/llvm_backend_stmt.cpp +++ b/src/llvm_backend_stmt.cpp @@ -1963,8 +1963,7 @@ gb_internal void lb_build_static_variables(lbProcedure *p, AstValueDecl *vd) { GB_ASSERT(ast_value->tav.mode == Addressing_Constant || ast_value->tav.mode == Addressing_Invalid); - bool allow_local = false; - value = lb_const_value(p->module, ast_value->tav.type, ast_value->tav.value, allow_local); + value = lb_const_value(p->module, ast_value->tav.type, ast_value->tav.value, LB_CONST_CONTEXT_DEFAULT_NO_LOCAL); } Ast *ident = vd->names[i]; |