mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Assert not properly traced #1354. Update interface fix.
This commit is contained in:
@@ -67,6 +67,7 @@
|
||||
- Int128 alignment change in LLVM fixed on x64.
|
||||
- Fix interface lazy resolution errors.
|
||||
- Interface resolution when part of generics #1348.
|
||||
- Assert not properly traced #1354.
|
||||
|
||||
### Stdlib changes
|
||||
|
||||
|
||||
@@ -147,6 +147,11 @@ static void sema_trace_stmt_liveness(Ast *ast)
|
||||
{
|
||||
sema_trace_expr_liveness(e);
|
||||
}
|
||||
if (safe_mode_enabled())
|
||||
{
|
||||
sema_trace_exprid_liveness(ast->assert_stmt.message);
|
||||
sema_trace_expr_list_liveness(ast->assert_stmt.args);
|
||||
}
|
||||
return;
|
||||
}
|
||||
case AST_DECLS_STMT:
|
||||
|
||||
@@ -98,12 +98,7 @@ static bool add_members_to_decl_stack(SemaContext *context, Decl *decl)
|
||||
}
|
||||
if (decl->decl_kind == DECL_INTERFACE)
|
||||
{
|
||||
FOREACH(TypeInfo *, parent_interface, decl->interfaces)
|
||||
{
|
||||
if (!sema_resolve_type_info(context, parent_interface, RESOLVE_TYPE_DEFAULT)) return false;
|
||||
Decl *inf = parent_interface->type->decl;
|
||||
if (!add_interface_to_decl_stack(context, inf)) return false;
|
||||
}
|
||||
if (!add_interface_to_decl_stack(context, decl)) return false;
|
||||
}
|
||||
if (decl_is_struct_type(decl) || decl->decl_kind == DECL_BITSTRUCT)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user