diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-02-10 00:24:52 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-02-10 00:27:02 -0700 |
| commit | c10fdde5a64a46bc514500e97b8c87d19f86e431 (patch) | |
| tree | 0512ae6e4bd7082d6df656f53ee174b99fe7f49e /src/codegen/spirv/Module.zig | |
| parent | 57357c43e3b56fd636cd08af591c50a08223b654 (diff) | |
| download | zig-c10fdde5a64a46bc514500e97b8c87d19f86e431.tar.gz zig-c10fdde5a64a46bc514500e97b8c87d19f86e431.zip | |
stage2: LLVM backend: make unnamed struct globals
LLVM union globals have to be lowered as unnamed structs if the
non-most-aligned field is the active tag. In this case it bubbles up so
that structs containing unions have the same restriction.
This fix needs to be applied to optionals and other callsites of
createNamedStruct.
The bug fixed in this commit was revealed in searching for
the cause of #10837.
Diffstat (limited to 'src/codegen/spirv/Module.zig')
0 files changed, 0 insertions, 0 deletions
