Refactoring.

This commit is contained in:
Christoffer Lerno
2025-06-25 15:08:57 +02:00
parent f67da4f315
commit e986e3a8c0
5 changed files with 62 additions and 70 deletions

View File

@@ -75,8 +75,10 @@ void context_change_scope_for_label(SemaContext *context, DeclId label_id)
}
}
AstId context_get_defers(SemaContext *context, AstId defer_top, AstId defer_bottom, bool is_success)
AstId context_get_defers(SemaContext *context, AstId defer_bottom, bool is_success)
{
AstId defer_top = context->active_scope.defer_last;
AstId first = 0;
AstId *next = &first;
while (defer_bottom != defer_top)