mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix compilation error for Invalid EntityKind
This commit is contained in:
+5
-1
@@ -1554,6 +1554,10 @@ Entity *check_ident(Checker *c, Operand *o, AstNode *n, Type *named_type, Type *
|
|||||||
o->mode = Addressing_Builtin;
|
o->mode = Addressing_Builtin;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Entity_TypeName:
|
||||||
|
o->mode = Addressing_Type;
|
||||||
|
break;
|
||||||
|
|
||||||
case Entity_ImportName:
|
case Entity_ImportName:
|
||||||
if (!allow_import_name) {
|
if (!allow_import_name) {
|
||||||
error_node(n, "Use of import `%.*s` not in selector", LIT(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;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
compiler_error("Unknown EntityKind");
|
compiler_error("Unknown EntityKind %.*s", LIT(entity_strings[e->kind]));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user