aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.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_decl.cpp
parentee78374281493c47594bb16838de202d87c3b5e9 (diff)
Remove addressing mode `Addressing_Immutable`
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index 45269762e..5f8a5be4f 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -1154,7 +1154,6 @@ void check_proc_body(CheckerContext *ctx_, Token token, DeclInfo *decl, Type *ty
if (!(e->flags & EntityFlag_Using)) {
continue;
}
- bool is_immutable = e->Variable.is_immutable;
bool is_value = (e->flags & EntityFlag_Value) != 0 && !is_type_pointer(e->type);
String name = e->token.string;
Type *t = base_type(type_deref(e->type));
@@ -1168,7 +1167,6 @@ void check_proc_body(CheckerContext *ctx_, Token token, DeclInfo *decl, Type *ty
Entity *f = scope->elements.entries[i].value;
if (f->kind == Entity_Variable) {
Entity *uvar = alloc_entity_using_variable(e, f->token, f->type, nullptr);
- uvar->Variable.is_immutable = is_immutable;
if (is_value) uvar->flags |= EntityFlag_Value;
ProcUsingVar puv = {e, uvar};