mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-17 19:32:23 -07:00
Fix Compiler assertion when applying using to _ procedure parameter. #451
This commit is contained in:
+2
-2
@@ -9743,7 +9743,7 @@ void ir_begin_procedure_body(irProcedure *proc) {
|
||||
}
|
||||
|
||||
Type *abi_type = proc->type->Proc.abi_compat_params[i];
|
||||
if (e->token.string != "" && !is_blank_ident(e->token)) {
|
||||
if (e->token.string != "") {
|
||||
ir_add_param(proc, e, name, abi_type, parameter_index);
|
||||
}
|
||||
|
||||
@@ -9766,7 +9766,7 @@ void ir_begin_procedure_body(irProcedure *proc) {
|
||||
if (abi_types.count > 0) {
|
||||
abi_type = abi_types[i];
|
||||
}
|
||||
if (e->token.string != "" && !is_blank_ident(e->token)) {
|
||||
if (e->token.string != "") {
|
||||
ir_add_param(proc, e, nullptr, abi_type, parameter_index);
|
||||
}
|
||||
if (is_type_tuple(abi_type)) {
|
||||
|
||||
Reference in New Issue
Block a user