diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2026-02-02 11:37:19 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-02 11:37:19 +0000 |
| commit | adf56ced22de0ef84100c70b394641c272231c3f (patch) | |
| tree | ee049d3ffa61d7ce1de1b774b4844a0ea7bfcc00 /src/check_builtin.cpp | |
| parent | b9e4007cb190c1a5d96e7786e726dcbcac1d08c9 (diff) | |
| parent | b183b1219c3b336988e53235a0671958b5079c09 (diff) | |
Merge pull request #6215 from odin-lang/bill/fix-data-races-2026-02
Fix numerous data races
Diffstat (limited to 'src/check_builtin.cpp')
| -rw-r--r-- | src/check_builtin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index e732d8ec3..e2428576e 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -534,12 +534,12 @@ gb_internal bool check_builtin_objc_procedure(CheckerContext *c, Operand *operan return false; } - if (ident.entity->kind != Entity_Procedure) { + if (ident.entity.load()->kind != Entity_Procedure) { gbString e = expr_to_string(handler_node); ERROR_BLOCK(); error(handler.expr, "'%.*s' expected a direct reference to a procedure", LIT(builtin_name)); - if(ident.entity->kind == Entity_Variable) { + if(ident.entity.load()->kind == Entity_Variable) { error_line("\tSuggestion: Variables referencing a procedure are not allowed, they are not a direct procedure reference."); } else { error_line("\tSuggestion: Ensure '%s' is not a runtime-evaluated expression.", e); // NOTE(harold): Is this case possible to hit? |