aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-12-01 19:11:00 +0000
committergingerBill <bill@gingerbill.org>2019-12-01 19:11:00 +0000
commite229885b2bd3b9b017f88d19a773bf989251ad51 (patch)
treeb9cfebff48333109f2089540c2a0ed828dd4881b /src/check_type.cpp
parentee78374281493c47594bb16838de202d87c3b5e9 (diff)
Remove addressing mode `Addressing_Immutable`
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 550761d78..a1ee1d154 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -200,8 +200,8 @@ void check_struct_fields(CheckerContext *ctx, Ast *node, Array<Entity *> *fields
Entity *make_names_field_for_struct(CheckerContext *ctx, Scope *scope) {
Entity *e = alloc_entity_field(scope, make_token_ident(str_lit("names")), t_string_slice, false, 0);
- e->Variable.is_immutable = true;
e->flags |= EntityFlag_TypeField;
+ e->flags |= EntityFlag_Value;
return e;
}
@@ -935,7 +935,7 @@ void check_bit_field_type(CheckerContext *ctx, Type *bit_field_type, Ast *node)
u32 bits = cast(u32)bits_;
Type *value_type = alloc_type_bit_field_value(bits);
- Entity *e = alloc_entity_variable(bit_field_type->BitField.scope, ident->Ident.token, value_type, false);
+ Entity *e = alloc_entity_variable(bit_field_type->BitField.scope, ident->Ident.token, value_type);
e->identifier = ident;
e->flags |= EntityFlag_BitFieldValue;