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 {...@@ -2400,9 +2400,6 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
2400 .nvptx,2400 .nvptx,
2401 .nvptx64,2401 .nvptx64,
2402 .s390x,2402 .s390x,
2403 .spirv,
2404 .spirv32,
2405 .spirv64,
2406 => 8,2403 => 8,
24072404
2408 .aarch64,2405 .aarch64,
...@@ -2417,6 +2414,9 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {...@@ -2417,6 +2414,9 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
2417 .riscv32,2414 .riscv32,
2418 .riscv64,2415 .riscv64,
2419 .sparc64,2416 .sparc64,
2417 .spirv,
2418 .spirv32,
2419 .spirv64,
2420 .x86_64,2420 .x86_64,
2421 .ve,2421 .ve,
2422 .wasm32,2422 .wasm32,
...@@ -2511,9 +2511,6 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {...@@ -2511,9 +2511,6 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
2511 .nvptx,2511 .nvptx,
2512 .nvptx64,2512 .nvptx64,
2513 .s390x,2513 .s390x,
2514 .spirv,
2515 .spirv32,
2516 .spirv64,
2517 => 8,2514 => 8,
25182515
2519 .aarch64,2516 .aarch64,
...@@ -2528,6 +2525,9 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {...@@ -2528,6 +2525,9 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
2528 .riscv32,2525 .riscv32,
2529 .riscv64,2526 .riscv64,
2530 .sparc64,2527 .sparc64,
2528 .spirv,
2529 .spirv32,
2530 .spirv64,
2531 .x86_64,2531 .x86_64,
2532 .ve,2532 .ve,
2533 .wasm32,2533 .wasm32,