mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Try to fix internal compiler error in #208
This commit is contained in:
+3
-4
@@ -1016,10 +1016,9 @@ Entity *check_ident(Checker *c, Operand *o, AstNode *n, Type *named_type, Type *
|
|||||||
|
|
||||||
|
|
||||||
if (e->type == nullptr) {
|
if (e->type == nullptr) {
|
||||||
if (e->state == EntityState_Unresolved) {
|
// TODO(bill): Which is correct? return or compiler_error?
|
||||||
return nullptr;
|
// compiler_error("How did this happen? type: %s; identifier: %.*s\n", type_to_string(e->type), LIT(name));
|
||||||
}
|
return nullptr;
|
||||||
compiler_error("How did this happen? type: %s; identifier: %.*s\n", type_to_string(e->type), LIT(name));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
e->flags |= EntityFlag_Used;
|
e->flags |= EntityFlag_Used;
|
||||||
|
|||||||
Reference in New Issue
Block a user