aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/c.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-10-08 21:16:35 +0100
committermlugg <mlugg@mlugg.co.uk>2024-10-19 19:15:23 +0100
commitbc797a97b1f7476b620567ff32b7a396ebdb4c9c (patch)
tree368d8fbb1d1dd5fb0b84b8499392ec4f69ea2693 /src/codegen/c.zig
parent36405b9b43237960733a86d0b1eeac1bc047311c (diff)
downloadzig-bc797a97b1f7476b620567ff32b7a396ebdb4c9c.tar.gz
zig-bc797a97b1f7476b620567ff32b7a396ebdb4c9c.zip
std: update for new `CallingConvention`
The old `CallingConvention` type is replaced with the new `NewCallingConvention`. References to `NewCallingConvention` in the compiler are updated accordingly. In addition, a few parts of the standard library are updated to use the new type correctly.
Diffstat (limited to 'src/codegen/c.zig')
-rw-r--r--src/codegen/c.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig
index 816913d4bd..c33aa9d31a 100644
--- a/src/codegen/c.zig
+++ b/src/codegen/c.zig
@@ -7604,7 +7604,7 @@ fn writeMemoryOrder(w: anytype, order: std.builtin.AtomicOrder) !void {
return w.writeAll(toMemoryOrder(order));
}
-fn toCallingConvention(cc: std.builtin.NewCallingConvention, zcu: *Zcu) ?[]const u8 {
+fn toCallingConvention(cc: std.builtin.CallingConvention, zcu: *Zcu) ?[]const u8 {
return switch (cc) {
.auto, .naked => null,
.x86_stdcall => "stdcall",