Fix race condition from add_entity_use due to Entity.identifier

This commit is contained in:
gingerBill committed 2021-08-19 17:38:18 +01:00
1 parent e722af7f61
commit 38841dd46e
6 files changed
+17 -15

No files matched your search

+1 -1
View File
@@ -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;