aboutsummaryrefslogtreecommitdiff
path: root/src/checker/stmt.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-09-08 00:23:14 +0100
committerGinger Bill <bill@gingerbill.org>2016-09-08 00:23:14 +0100
commitc6d02e4778486c350a732105b6413ba1d32a234a (patch)
tree5b1dd564dd1e9c96dcf237cc06b3a09fba8854b2 /src/checker/stmt.cpp
parent3d02f8a5fdcd18f08083994a51ac9518fc565f79 (diff)
Fix missing `type_info` with manual linear search
Diffstat (limited to 'src/checker/stmt.cpp')
-rw-r--r--src/checker/stmt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/checker/stmt.cpp b/src/checker/stmt.cpp
index 636ccdb34..3001c6e5e 100644
--- a/src/checker/stmt.cpp
+++ b/src/checker/stmt.cpp
@@ -452,6 +452,7 @@ void check_proc_decl(Checker *c, Entity *e, DeclInfo *d, b32 check_body_later) {
b32 is_foreign = (pd->tags & ProcTag_foreign) != 0;
b32 is_inline = (pd->tags & ProcTag_inline) != 0;
b32 is_no_inline = (pd->tags & ProcTag_no_inline) != 0;
+ b32 is_pure = (pd->tags & ProcTag_pure) != 0;
@@ -1283,8 +1284,7 @@ void check_stmt(Checker *c, AstNode *node, u32 flags) {
error(&c->error_collector, us->token, "`using` cannot be applied to a procedure");
break;
- case Entity_Variable:
- case Entity_UsingVariable: {
+ case Entity_Variable: {
Type *t = get_base_type(type_deref(e->type));
if (is_type_struct(t) || is_type_raw_union(t)) {
Scope **found = map_get(&c->info.scopes, hash_pointer(t->Record.node));