diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-03-01 14:56:43 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-03-01 14:58:37 -0700 |
| commit | f6aaab9406807305c2b48fcd742449c9e91f1851 (patch) | |
| tree | 2eeae513df72230b216a77c627a612239e7df6e9 /src/codegen.zig | |
| parent | 1b194931b0df08db0f38a284bb10b89cc00a8817 (diff) | |
| download | zig-f6aaab9406807305c2b48fcd742449c9e91f1851.tar.gz zig-f6aaab9406807305c2b48fcd742449c9e91f1851.zip | |
LLVM: fix tripping assertions
Packed structs were tripping an LLVM assertion due to calling
`LLVMConstZExt` from i16 to i16. Solved by using instead
`LLVMConstZExtOrBitCast`.
Unions were tripping an LLVM assertion due to a typo using the union
llvm type to construct an integer value rather than the tag type.
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions
