diff options
| author | gingerBill <bill@gingerbill.org> | 2023-08-05 16:05:39 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-08-05 16:05:39 +0100 |
| commit | c91898a8889604617140ad15c70f4d68494fa0a1 (patch) | |
| tree | bf5f82b295f1751ce2e099a07edbfdfe175a7ddb /src/check_builtin.cpp | |
| parent | afa8eb2d6fdf1e3fd7278ee1623506984a150f15 (diff) | |
Remove #relative slices; Replace with #relative multi-pointers
Diffstat (limited to 'src/check_builtin.cpp')
| -rw-r--r-- | src/check_builtin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index 7f9f4ab13..2e65c5750 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -1748,7 +1748,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As mode = Addressing_Constant; value = exact_value_i64(at->EnumeratedArray.count); type = t_untyped_integer; - } else if ((is_type_slice(op_type) || is_type_relative_slice(op_type)) && id == BuiltinProc_len) { + } else if (is_type_slice(op_type) && id == BuiltinProc_len) { mode = Addressing_Value; } else if (is_type_dynamic_array(op_type)) { mode = Addressing_Value; |