aboutsummaryrefslogtreecommitdiff
path: root/src/Cache.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-01-27 21:36:43 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-01-28 11:45:04 -0700
commit3c827be876a39cbe199e5cd7c6e90edef3a090b5 (patch)
treed13e5cec6df861361d523201ed922c5f6010af71 /src/Cache.zig
parent4411f9c019f8f41baeacd39be01af9f961df4e4e (diff)
downloadzig-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 'src/Cache.zig')
0 files changed, 0 insertions, 0 deletions