aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-11-14 15:22:40 +0000
committergingerBill <bill@gingerbill.org>2021-11-14 15:22:40 +0000
commitf47311f2f6c59856efd64c56101cc004d1b15bc2 (patch)
tree11fb70eb39f725c82f8e013ac2a922b22cb63355 /src/check_decl.cpp
parent3f038428a7f282468011415db76da4bf08ddb67c (diff)
Remove `scope` field from `Ast`
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index 134dbb35b..42f68203c 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -1302,9 +1302,6 @@ void check_proc_body(CheckerContext *ctx_, Token token, DeclInfo *decl, Type *ty
Type *t = base_type(type_deref(e->type));
if (t->kind == Type_Struct) {
Scope *scope = t->Struct.scope;
- if (scope == nullptr) {
- scope = scope_of_node(t->Struct.node);
- }
GB_ASSERT(scope != nullptr);
for_array(i, scope->elements.entries) {
Entity *f = scope->elements.entries[i].value;