diff options
| author | gingerBill <bill@gingerbill.org> | 2023-08-07 15:18:45 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-08-07 15:18:45 +0100 |
| commit | b782fca75bbd3f8bd36b076e42e85005df48f70f (patch) | |
| tree | f64661ac5777cd97ec78aac50f5bef9e24680d42 /src/entity.cpp | |
| parent | 0230b8807851de2b1e9975a1c292a0a4471936f9 (diff) | |
Fix `using` bug
Diffstat (limited to 'src/entity.cpp')
| -rw-r--r-- | src/entity.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/entity.cpp b/src/entity.cpp index ce27da3f2..4fc98f277 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -347,6 +347,7 @@ gb_internal Entity *alloc_entity_using_variable(Entity *parent, Token token, Typ entity->using_parent = parent; entity->parent_proc_decl = parent->parent_proc_decl; entity->using_expr = using_expr; + GB_ASSERT(using_expr != nullptr); entity->flags |= EntityFlag_Using; entity->flags |= EntityFlag_Used; entity->state = EntityState_Resolved; |