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

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


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

lib/std/Target.zig+2-2
......@@ -2345,7 +2345,6 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
23452345 .xcore,
23462346 .loongarch32,
23472347 .kalimba,
2348 .ve,
23492348 .spu_2,
23502349 .xtensa,
23512350 => 4,
......@@ -2380,6 +2379,7 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
23802379 .riscv64,
23812380 .sparc64,
23822381 .x86_64,
2382 .ve,
23832383 .wasm32,
23842384 .wasm64,
23852385 => 16,
......@@ -2450,7 +2450,6 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
24502450 .xcore,
24512451 .loongarch32,
24522452 .kalimba,
2453 .ve,
24542453 .spu_2,
24552454 .xtensa,
24562455 => 4,
......@@ -2492,6 +2491,7 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
24922491 .riscv64,
24932492 .sparc64,
24942493 .x86_64,
2494 .ve,
24952495 .wasm32,
24962496 .wasm64,
24972497 => 16,