mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Function @require checks are added to the caller in safe mode. #186
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user