diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-06-26 14:16:16 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-06-26 14:16:16 +0100 |
| commit | cc7316bb353db4f32e6bc3f25c6f505224ec9f55 (patch) | |
| tree | 36f984726b77aa12ff93db01f51c403ac2f69e89 /src/check_expr.cpp | |
| parent | a0d8dcd9743c1f1a4dabfc5bba7301785ded98a3 (diff) | |
Fix IR printing for para-poly procedures
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 43d870261..554b5a310 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -1150,7 +1150,7 @@ Type *check_get_params(Checker *c, Scope *scope, AstNode *_params, bool *is_vari } if (type_expr->kind == AstNode_HelperType) { if (operands != NULL) { - Operand o = (*operands)[i]; + Operand o = (*operands)[variable_index]; if (o.mode == Addressing_Type) { type = o.type; } else { @@ -1223,7 +1223,7 @@ Type *check_get_params(Checker *c, Scope *scope, AstNode *_params, bool *is_vari bool is_generic = type->kind == Type_Generic; Type *gen_type = type; if (operands != NULL) { - Operand o = (*operands)[j]; + Operand o = (*operands)[variable_index]; is_generic = o.mode == Addressing_Type && o.type == type; if (is_generic) gen_type = o.type; } |