aboutsummaryrefslogtreecommitdiff
path: root/src/checker/entity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/checker/entity.cpp')
-rw-r--r--src/checker/entity.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/checker/entity.cpp b/src/checker/entity.cpp
index 8667aa0c7..480e619a9 100644
--- a/src/checker/entity.cpp
+++ b/src/checker/entity.cpp
@@ -93,9 +93,10 @@ Entity *make_entity_type_name(gbAllocator a, Scope *scope, Token token, Type *ty
return entity;
}
-Entity *make_entity_param(gbAllocator a, Scope *scope, Token token, Type *type) {
+Entity *make_entity_param(gbAllocator a, Scope *scope, Token token, Type *type, b32 is_anonymous) {
Entity *entity = make_entity_variable(a, scope, token, type);
entity->Variable.used = true;
+ entity->Variable.anonymous = cast(b8)is_anonymous;
return entity;
}