commit 29321ca4a2abc5c4c936840f2bc6002babbdbf3b (tree)
parent e67388c2e538789aa3e46f625f6e08696093dcdb
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Tue, 6 Aug 2024 18:43:29 +0200
std.Target: Fix C type alignment calculation for spirv32.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/std/Target.zig b/lib/std/Target.zig
@@ -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,