mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 17:32:22 -07:00
Fix race condition from add_entity_use due to Entity.identifier
This commit is contained in:
+1
-1
@@ -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