aboutsummaryrefslogtreecommitdiff
path: root/src/Type.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/Type.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/Type.zig')
-rw-r--r--src/Type.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Type.zig b/src/Type.zig
index 1a3f530e13..9c44e69657 100644
--- a/src/Type.zig
+++ b/src/Type.zig
@@ -2493,7 +2493,7 @@ pub fn fnReturnType(ty: Type, zcu: *const Zcu) Type {
}
/// Asserts the type is a function.
-pub fn fnCallingConvention(ty: Type, zcu: *const Zcu) std.builtin.NewCallingConvention {
+pub fn fnCallingConvention(ty: Type, zcu: *const Zcu) std.builtin.CallingConvention {
return zcu.intern_pool.indexToKey(ty.toIntern()).func_type.cc;
}