mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-17 03:12:22 -07: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) {
|
||||
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