Start work on 0.6.5

This commit is contained in:
Christoffer Lerno
2024-11-08 21:04:22 +01:00
parent 547f2ef189
commit b882265e52
72 changed files with 887 additions and 873 deletions

View File

@@ -124,7 +124,7 @@ void context_pop_defers_and_replace_ast(SemaContext *context, Ast *ast)
AstId defer_first = 0;
context_pop_defers(context, &defer_first);
if (!defer_first) return;
assert(ast->ast_kind != AST_COMPOUND_STMT);
ASSERT0(ast->ast_kind != AST_COMPOUND_STMT);
Ast *replacement = ast_copy(ast);
ast->ast_kind = AST_COMPOUND_STMT;
ast->compound_stmt = (AstCompoundStmt) { .first_stmt = astid(replacement) };
@@ -252,7 +252,7 @@ static void register_generic_decls(CompilationUnit *unit, Decl **decls)
static void analyze_generic_module(Module *module)
{
assert(module->parameters && module->is_generic);
ASSERT0(module->parameters && module->is_generic);
FOREACH(CompilationUnit *, unit, module->units)
{
register_generic_decls(unit, unit->global_decls);