diff options
| author | gingerBill <bill@gingerbill.org> | 2019-12-01 19:11:00 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-12-01 19:11:00 +0000 |
| commit | e229885b2bd3b9b017f88d19a773bf989251ad51 (patch) | |
| tree | b9cfebff48333109f2089540c2a0ed828dd4881b /src/checker.cpp | |
| parent | ee78374281493c47594bb16838de202d87c3b5e9 (diff) | |
Remove addressing mode `Addressing_Immutable`
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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) { |