authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-08 02:41:17+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-08 02:41:17+02:00
logbf47cb4379519b3af4610696cf25a7f325866d72
treede635ca01a35c3af4ab954db3455c453ec58bf61
parent1b6b8813cf95e2ad5170ffb1e80531c635679cc6
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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


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

lib/std/Target.zig+6-6
......@@ -2400,9 +2400,6 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
24002400 .nvptx,
24012401 .nvptx64,
24022402 .s390x,
2403 .spirv,
2404 .spirv32,
2405 .spirv64,
24062403 => 8,
24072404
24082405 .aarch64,
......@@ -2417,6 +2414,9 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
24172414 .riscv32,
24182415 .riscv64,
24192416 .sparc64,
2417 .spirv,
2418 .spirv32,
2419 .spirv64,
24202420 .x86_64,
24212421 .ve,
24222422 .wasm32,
......@@ -2511,9 +2511,6 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
25112511 .nvptx,
25122512 .nvptx64,
25132513 .s390x,
2514 .spirv,
2515 .spirv32,
2516 .spirv64,
25172514 => 8,
25182515
25192516 .aarch64,
......@@ -2528,6 +2525,9 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
25282525 .riscv32,
25292526 .riscv64,
25302527 .sparc64,
2528 .spirv,
2529 .spirv32,
2530 .spirv64,
25312531 .x86_64,
25322532 .ve,
25332533 .wasm32,