0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00

fix segfault when passing union enum with sub byte...

...field to const slice parameter

we use a packed struct internally to represent a const array
of disparate union values, and needed to update the internal
getelementptr instruction to recognize that.

closes #664
This commit is contained in:
Andrew Kelley 2017-12-24 04:10:26 -05:00
commit 2a25398c86
3 changed files with 35 additions and 8 deletions