Correct assertion usage
This commit is contained in:
1 parent
c2665462e5
commit
229c98309e
1 file changed
+3
-2
+3
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user