aboutsummaryrefslogtreecommitdiff
path: root/src/checker/checker.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-12-22 23:06:31 +0000
committerGinger Bill <bill@gingerbill.org>2016-12-22 23:06:31 +0000
commitd714bece47ea058e482389452cd428dad9c28fd0 (patch)
tree5e4291d573e6f3d83f606bdf9d444d48ff7d943c /src/checker/checker.c
parent923b039cf6e7b306f42c5319d66f0a382378935f (diff)
Handle calling conventions correctly
Diffstat (limited to 'src/checker/checker.c')
-rw-r--r--src/checker/checker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/checker/checker.c b/src/checker/checker.c
index 8fc40b83d..2159eb95b 100644
--- a/src/checker/checker.c
+++ b/src/checker/checker.c
@@ -1142,8 +1142,8 @@ void check_global_collect_entities_from_file(Checker *c, Scope *parent_scope, As
for_array(iota, gd->specs) {
AstNode *spec = gd->specs.e[iota];
switch (spec->kind) {
- case_ast_node(bd, BadDecl, decl);
- case_end;
+ case AstNode_BadDecl:
+ break;
case_ast_node(is, ImportSpec, spec);
if (!parent_scope->is_file) {
// NOTE(bill): _Should_ be caught by the parser