mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-14 22:33:43 +00:00
Make Entity.parent_proc_decl atomic
This commit is contained in:
@@ -559,8 +559,8 @@ gb_internal void write_canonical_parent_prefix(TypeWriter *w, Entity *e) {
|
||||
// no prefix
|
||||
return;
|
||||
}
|
||||
if (e->parent_proc_decl) {
|
||||
Entity *p = e->parent_proc_decl->entity;
|
||||
if (e->parent_proc_decl.load(std::memory_order_relaxed)) {
|
||||
Entity *p = e->parent_proc_decl.load(std::memory_order_relaxed)->entity;
|
||||
write_canonical_parent_prefix(w, p);
|
||||
type_writer_append(w, p->token.string.text, p->token.string.len);
|
||||
if (is_type_polymorphic(p->type)) {
|
||||
|
||||
Reference in New Issue
Block a user