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

This commit is contained in:
Alex Rønne Petersen 2024-08-06 18:43:29 +02:00
parent e67388c2e5
commit 29321ca4a2
No known key found for this signature in database

View File

@ -2344,7 +2344,6 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
.x86,
.xcore,
.loongarch32,
.spirv32,
.kalimba,
.ve,
.spu_2,
@ -2366,6 +2365,7 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
.nvptx,
.nvptx64,
.s390x,
.spirv32,
.spirv64,
=> 8,
@ -2449,7 +2449,6 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
.csky,
.xcore,
.loongarch32,
.spirv32,
.kalimba,
.ve,
.spu_2,
@ -2478,6 +2477,7 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
.nvptx,
.nvptx64,
.s390x,
.spirv32,
.spirv64,
=> 8,