Function @require checks are added to the caller in safe mode. #186

This commit is contained in:
Christoffer Lerno
2025-04-06 15:28:10 +02:00
parent 3cb5df5639
commit 94b8330ac5
10 changed files with 215 additions and 47 deletions

View File

@@ -5839,6 +5839,11 @@ static void llvm_emit_call_expr(GenContext *c, BEValue *result_value, Expr *expr
}
}
if (safe_mode_enabled())
{
llvm_emit_statement_chain(c, expr->call_expr.function_contracts);
}
// 1. Dynamic dispatch.
if (expr->call_expr.is_dynamic_dispatch)
{