mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-02 19:22:33 +00:00
Fix race condition from add_entity_use due to Entity.identifier
This commit is contained in:
@@ -120,7 +120,7 @@ struct Entity {
|
||||
Token token;
|
||||
Scope * scope;
|
||||
Type * type;
|
||||
Ast * identifier; // Can be nullptr
|
||||
std::atomic<Ast *> identifier; // Can be nullptr
|
||||
DeclInfo * decl_info;
|
||||
DeclInfo * parent_proc_decl; // nullptr if in file/global scope
|
||||
AstFile * file;
|
||||
|
||||
Reference in New Issue
Block a user