diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-06-13 18:04:22 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-06-13 18:04:22 +0100 |
| commit | e7fc24e48c39f1aa9f886d13608ad8e22f167027 (patch) | |
| tree | 2d0ec28e258105f3bfc97ce0eae04a3fa2b06226 /src/check_expr.cpp | |
| parent | 6a88dc322acfd54c55ed7dceebdeaa5ce18ce416 (diff) | |
Fix compilation error for Invalid EntityKind
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 5a227ebce..2f43197c8 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -1554,6 +1554,10 @@ Entity *check_ident(Checker *c, Operand *o, AstNode *n, Type *named_type, Type * o->mode = Addressing_Builtin; break; + case Entity_TypeName: + o->mode = Addressing_Type; + break; + case Entity_ImportName: if (!allow_import_name) { error_node(n, "Use of import `%.*s` not in selector", LIT(name)); @@ -1572,7 +1576,7 @@ Entity *check_ident(Checker *c, Operand *o, AstNode *n, Type *named_type, Type * break; default: - compiler_error("Unknown EntityKind"); + compiler_error("Unknown EntityKind %.*s", LIT(entity_strings[e->kind])); break; } |