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.
This commit is contained in:
Alex Rønne Petersen 2024-08-06 17:10:10 +02:00
parent fab5df4028
commit ab154be7f0
No known key found for this signature in database

View File

@ -1854,12 +1854,12 @@ pub fn ptrBitWidth_cpu_abi(cpu: Cpu, abi: Abi) u16 {
.wasm32,
.spirv32,
.loongarch32,
.dxil,
.xtensa,
=> 32,
.aarch64,
.aarch64_be,
.dxil,
.mips64,
.mips64el,
.powerpc64,