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

std.Target: Fix C type alignment calculation for dxil.


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

lib/std/Target.zig+2-2
...@@ -2343,7 +2343,6 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {...@@ -2343,7 +2343,6 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
2343 .csky,2343 .csky,
2344 .x86,2344 .x86,
2345 .xcore,2345 .xcore,
2346 .dxil,
2347 .loongarch32,2346 .loongarch32,
2348 .spirv32,2347 .spirv32,
2349 .kalimba,2348 .kalimba,
...@@ -2355,6 +2354,7 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {...@@ -2355,6 +2354,7 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
2355 .amdgcn,2354 .amdgcn,
2356 .bpfel,2355 .bpfel,
2357 .bpfeb,2356 .bpfeb,
2357 .dxil,
2358 .hexagon,2358 .hexagon,
2359 .loongarch64,2359 .loongarch64,
2360 .m68k,2360 .m68k,
...@@ -2448,7 +2448,6 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {...@@ -2448,7 +2448,6 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
24482448
2449 .csky,2449 .csky,
2450 .xcore,2450 .xcore,
2451 .dxil,
2452 .loongarch32,2451 .loongarch32,
2453 .spirv32,2452 .spirv32,
2454 .kalimba,2453 .kalimba,
...@@ -2466,6 +2465,7 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {...@@ -2466,6 +2465,7 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
2466 .amdgcn,2465 .amdgcn,
2467 .bpfel,2466 .bpfel,
2468 .bpfeb,2467 .bpfeb,
2468 .dxil,
2469 .hexagon,2469 .hexagon,
2470 .x86,2470 .x86,
2471 .loongarch64,2471 .loongarch64,