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/checker.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/checker.cpp') diff --git a/src/checker.cpp b/src/checker.cpp index db9deb9ab..cce2aac35 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -7,7 +7,6 @@ void check_expr(CheckerContext *c, Operand *operand, Ast *expression); bool is_operand_value(Operand o) { switch (o.mode) { case Addressing_Value: - case Addressing_Immutable: case Addressing_Context: case Addressing_Variable: case Addressing_Constant: @@ -2607,7 +2606,7 @@ void check_collect_value_decl(CheckerContext *c, Ast *decl) { error(name, "A declaration's name must be an identifier, got %.*s", LIT(ast_strings[name->kind])); continue; } - Entity *e = alloc_entity_variable(c->scope, name->Ident.token, nullptr, false); + Entity *e = alloc_entity_variable(c->scope, name->Ident.token, nullptr); e->identifier = name; if (entity_is_private) { -- cgit v1.2.3