Mitchell Hashimoto a859f94644
stage2: LLVM codegen of arrays should use type length, not value length
It is possible for the value length to be longer than the type because
we allow in-memory coercing of types such as `[5:0]u8` to `[5]u8`. In
such a case, the value length is 6 but the type length if 5.

The `.repeated` value type already got this right, so this is extending
similar logic out to `.aggregate` and `.bytes`. Both scenarios are
tested in behavior tests.

Fixes #11165
2022-03-14 17:41:12 -07:00
..
2022-02-22 21:57:42 +01:00
2021-06-21 17:03:03 -07:00
2022-03-05 11:31:51 +01:00
2022-03-09 13:53:20 -07:00
2022-03-09 13:53:20 -07:00
2021-06-21 17:03:03 -07:00
2022-02-22 21:57:42 +01:00
2022-02-28 23:20:05 +01:00
2022-03-09 13:53:20 -07:00
2022-03-09 13:53:20 -07:00
2022-03-09 13:53:20 -07:00
2022-03-08 21:10:04 +01:00
2022-02-09 10:28:48 +01:00
2022-03-09 13:53:20 -07:00
2022-03-08 21:10:04 +01:00
2022-03-09 13:53:20 -07:00
2021-06-12 19:16:01 +03:00
2021-06-21 17:03:03 -07:00
2022-03-09 13:53:20 -07:00