Commit 38215ccc3e

Veikka Tuominen <git@vexu.eu>
2022-08-24 14:04:31
stage2: handle `int_u64` in `elemValueAdvanced`
Closes #12599
1 parent 5696cc8
Changed files (1)
src/value.zig
@@ -2689,6 +2689,12 @@ pub const Value = extern union {
             // to have only one possible value itself.
             .the_only_possible_value => return val,
 
+            // pointer to integer casted to pointer of array
+            .int_u64, .int_i64 => {
+                assert(index == 0);
+                return val;
+            },
+
             else => unreachable,
         }
     }