mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Start work on 0.6.5
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user