aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-07-10 13:02:13 +0100
committergingerBill <bill@gingerbill.org>2021-07-10 13:02:13 +0100
commit4a932616fc6d8d5c4cad98debf292a1916e5a2be (patch)
tree6cbd10f3a41a248e50bbf9af0893f56af03b4b03 /src/check_decl.cpp
parent73fe36f19c8e7563f33e9251f58ce7ddb5e4eacd (diff)
Improve CheckerContext usage
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index 583c4f133..a2c40c9a2 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -313,7 +313,7 @@ void check_type_decl(CheckerContext *ctx, Entity *e, Ast *init_expr, Type *def)
if (is_blank_ident(name)) {
continue;
}
- add_entity(ctx->checker, parent, nullptr, f);
+ add_entity(ctx, parent, nullptr, f);
}
}
}