aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv.zig
diff options
context:
space:
mode:
authorMatthew Lugg <mlugg@mlugg.co.uk>2024-10-23 16:48:33 +0100
committerGitHub <noreply@github.com>2024-10-23 16:48:33 +0100
commit6bf52b0505ad7317b5f0d6fa77b7c41318b9c73b (patch)
tree22b5acedc288f3f2085fa4a170ee3d7629e8a9fe /src/codegen/spirv.zig
parent2d888a8e639856e8cb6e4c6f9e6a27647b464952 (diff)
parentf7d679ceae2403d4137d75d4afe32a3e8eb0cf16 (diff)
downloadzig-6bf52b0505ad7317b5f0d6fa77b7c41318b9c73b.tar.gz
zig-6bf52b0505ad7317b5f0d6fa77b7c41318b9c73b.zip
Merge pull request #21697 from mlugg/callconv
Replace `std.builtin.CallingConvention` with a tagged union, eliminating `@setAlignStack`
Diffstat (limited to 'src/codegen/spirv.zig')
-rw-r--r--src/codegen/spirv.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/codegen/spirv.zig b/src/codegen/spirv.zig
index ed30ede269..279b7d5056 100644
--- a/src/codegen/spirv.zig
+++ b/src/codegen/spirv.zig
@@ -1640,8 +1640,8 @@ const NavGen = struct {
comptime assert(zig_call_abi_ver == 3);
switch (fn_info.cc) {
- .Unspecified, .Kernel, .Fragment, .Vertex, .C => {},
- else => unreachable, // TODO
+ .auto, .spirv_kernel, .spirv_fragment, .spirv_vertex => {},
+ else => @panic("TODO"),
}
// TODO: Put this somewhere in Sema.zig
@@ -2970,7 +2970,7 @@ const NavGen = struct {
.id_result_type = return_ty_id,
.id_result = result_id,
.function_control = switch (fn_info.cc) {
- .Inline => .{ .Inline = true },
+ .@"inline" => .{ .Inline = true },
else => .{},
},
.function_type = prototype_ty_id,