diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-01-27 21:36:43 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-01-28 11:45:04 -0700 |
| commit | 3c827be876a39cbe199e5cd7c6e90edef3a090b5 (patch) | |
| tree | d13e5cec6df861361d523201ed922c5f6010af71 /lib/std/Thread.zig | |
| parent | 4411f9c019f8f41baeacd39be01af9f961df4e4e (diff) | |
| download | zig-3c827be876a39cbe199e5cd7c6e90edef3a090b5.tar.gz zig-3c827be876a39cbe199e5cd7c6e90edef3a090b5.zip | |
fix invalid const bitcast of f80
LLVM bitcast wants integers that match the number of bits. So the const
bitcast has to use an i80, not an i128.
This commit makes the behavior tests fail for me, so it seems I did not
correctly construct the type. But it gets rid of the LLVM segfault.
I noticed that the strategy of memcpy the buf worked if I simply did an
LLVMConstTrunc() on the i128 to make it into an i80 before the
LLVMConstBitCast().
But is that correct in the face of different endianness? I'm not sure.
Diffstat (limited to 'lib/std/Thread.zig')
0 files changed, 0 insertions, 0 deletions
