aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-10-26 12:14:04 +0100
committergingerBill <bill@gingerbill.org>2019-10-26 12:14:04 +0100
commit94879ed14997c4d2745ddb669d08b34437ceff75 (patch)
tree6864270ffbfe71a53f3a295f496cf90cebf8121e /src/ir.cpp
parent2c75fe2314aa6de6c8f80d519bbb1812ad77b444 (diff)
Fix Compiler assertion when applying `using` to `_` procedure parameter. #451
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index bea9ee8b3..c654e2bf8 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -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)) {