mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Correct assertion usage
This commit is contained in:
+3
-2
@@ -1345,8 +1345,9 @@ void check_proc_body(CheckerContext *ctx_, Token token, DeclInfo *decl, Type *ty
|
|||||||
for_array(j, vd->names) {
|
for_array(j, vd->names) {
|
||||||
Ast *name = vd->names[j];
|
Ast *name = vd->names[j];
|
||||||
if (!is_blank_ident(name)) {
|
if (!is_blank_ident(name)) {
|
||||||
GB_ASSERT(name->kind == Ast_Ident);
|
if (name->kind == Ast_Ident) {
|
||||||
GB_ASSERT(name->Ident.entity != nullptr);
|
GB_ASSERT(name->Ident.entity != nullptr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user