mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-08 22:01:47 -04:00
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:
1 parent
9fb76aa3ba
commit
6961b36425
5 files changed
+174
-52
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user