authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-06 17:10:10+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-06 20:17:03+02:00
logab154be7f0a89b271686d740f7e50545414a6024
treee74b9b24138b6cdbc3d0bc8d112ea2a958e0bf47
parentfab5df4028f686a69330982b41ee880b5bdd4e04
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: Fix ptrBitWidth_cpu_abi() for dxil (64-bit, not 32-bit).

The DXIL documentation claims 32-bit pointers: https://github.com/microsoft/DirectXShaderCompiler/blob/main/docs/DXIL.rst#memory-accesses Despite this, Clang considers pointers 64-bit when targeting it.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/Target.zig+1-1
......@@ -1854,12 +1854,12 @@ pub fn ptrBitWidth_cpu_abi(cpu: Cpu, abi: Abi) u16 {
18541854 .wasm32,
18551855 .spirv32,
18561856 .loongarch32,
1857 .dxil,
18581857 .xtensa,
18591858 => 32,
18601859
18611860 .aarch64,
18621861 .aarch64_be,
1862 .dxil,
18631863 .mips64,
18641864 .mips64el,
18651865 .powerpc64,