Correct assertion usage

This commit is contained in:
gingerBill
2021-11-03 11:02:47 +00:00
parent c2665462e5
commit 229c98309e
+3 -2
View File
@@ -1345,8 +1345,9 @@ void check_proc_body(CheckerContext *ctx_, Token token, DeclInfo *decl, Type *ty
for_array(j, vd->names) {
Ast *name = vd->names[j];
if (!is_blank_ident(name)) {
GB_ASSERT(name->kind == Ast_Ident);
GB_ASSERT(name->Ident.entity != nullptr);
if (name->kind == Ast_Ident) {
GB_ASSERT(name->Ident.entity != nullptr);
}
}
}
}