diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-19 17:38:18 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-19 17:38:18 +0100 |
| commit | 38841dd46e6bb5879200c0a8e2f879c8cfa005d6 (patch) | |
| tree | d742d0f758224110243741ae1d99f4d7e51ab3da /src/check_type.cpp | |
| parent | e722af7f6126d821ec2847769b234ed18f61518c (diff) | |
Fix race condition from `add_entity_use` due to Entity.identifier
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index d3bcb5bb6..867b4d7b2 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1565,7 +1565,7 @@ Type *check_get_params(CheckerContext *ctx, Scope *scope, Ast *_params, bool *is if (is_type_proc(op.type)) { Entity *proc_entity = entity_from_expr(op.expr); valid = proc_entity != nullptr; - poly_const = exact_value_procedure(proc_entity->identifier ? proc_entity->identifier : op.expr); + poly_const = exact_value_procedure(proc_entity->identifier.load() ? proc_entity->identifier.load() : op.expr); } if (!valid) { if (op.mode == Addressing_Constant) { |