Commit e67388c2e5

Alex Rønne Petersen <alex@alexrp.com>
2024-08-06 17:12:33
std.Target: Fix C type alignment calculation for dxil.
1 parent db8f00e
Changed files (1)
lib
lib/std/Target.zig
@@ -2343,7 +2343,6 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
             .csky,
             .x86,
             .xcore,
-            .dxil,
             .loongarch32,
             .spirv32,
             .kalimba,
@@ -2355,6 +2354,7 @@ pub fn c_type_alignment(target: Target, c_type: CType) u16 {
             .amdgcn,
             .bpfel,
             .bpfeb,
+            .dxil,
             .hexagon,
             .loongarch64,
             .m68k,
@@ -2448,7 +2448,6 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
 
             .csky,
             .xcore,
-            .dxil,
             .loongarch32,
             .spirv32,
             .kalimba,
@@ -2466,6 +2465,7 @@ pub fn c_type_preferred_alignment(target: Target, c_type: CType) u16 {
             .amdgcn,
             .bpfel,
             .bpfeb,
+            .dxil,
             .hexagon,
             .x86,
             .loongarch64,