Fix the core:sys/llvm bindings for current LLVM, add the missing ones; allow #const parameters to take their defaults, and reuse an intrinsic already declared by the compiler

This commit is contained in:
gingerBill committed 2026-10-07 16:56:25 +01:00
1 parent 9fb76aa3ba
commit 6961b36425
5 files changed
+174 -52

No files matched your search

+5
View File
@@ -7210,6 +7210,11 @@ gb_internal CallArgumentError check_call_arguments_internal(CheckerContext *c, A
ordered_operands[i].type = e->type;
if (e->Variable.param_value.kind == ParameterValue_Nil)
ordered_operands[i].type = t_untyped_nil;
if (e->Variable.param_value.kind == ParameterValue_Constant) {
// so a `#const` parameter accepts its own default
ordered_operands[i].mode = Addressing_Constant;
ordered_operands[i].value = e->Variable.param_value.value;
}
ordered_operands[i].expr = e->Variable.param_value.original_ast_expr;
}