From e229885b2bd3b9b017f88d19a773bf989251ad51 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 1 Dec 2019 19:11:00 +0000 Subject: Remove addressing mode `Addressing_Immutable` --- src/check_type.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/check_type.cpp') 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 *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; -- cgit v1.2.3