mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Fix crash when a variable declaration must be an identifier
This commit is contained in:
+3
-4
@@ -1478,10 +1478,9 @@ gb_internal void add_type_and_value(CheckerContext *ctx, Ast *expr, AddressingMo
|
|||||||
|
|
||||||
gb_internal void add_entity_definition(CheckerInfo *i, Ast *identifier, Entity *entity) {
|
gb_internal void add_entity_definition(CheckerInfo *i, Ast *identifier, Entity *entity) {
|
||||||
GB_ASSERT(identifier != nullptr);
|
GB_ASSERT(identifier != nullptr);
|
||||||
GB_ASSERT(identifier->kind == Ast_Ident);
|
if (identifier->kind != Ast_Ident) {
|
||||||
// if (is_blank_ident(identifier)) {
|
return;
|
||||||
// return;
|
}
|
||||||
// }
|
|
||||||
if (identifier->Ident.entity != nullptr) {
|
if (identifier->Ident.entity != nullptr) {
|
||||||
// NOTE(bill): Identifier has already been handled
|
// NOTE(bill): Identifier has already been handled
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user