aboutsummaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-08-07 15:18:45 +0100
committergingerBill <bill@gingerbill.org>2023-08-07 15:18:45 +0100
commitb782fca75bbd3f8bd36b076e42e85005df48f70f (patch)
treef64661ac5777cd97ec78aac50f5bef9e24680d42 /src/entity.cpp
parent0230b8807851de2b1e9975a1c292a0a4471936f9 (diff)
Fix `using` bug
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp1
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;