diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2024-10-15 02:27:18 +0100 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2024-10-19 19:15:23 +0100 |
| commit | 2d9a167cd2235ce221a9b3aec23a0e537c151380 (patch) | |
| tree | 31edcd6974b2700b2146c4247d8b77be908ee344 /src/Sema.zig | |
| parent | cbfe00b17df276fcf89faa1bb4380ed7f43156a0 (diff) | |
| download | zig-2d9a167cd2235ce221a9b3aec23a0e537c151380.tar.gz zig-2d9a167cd2235ce221a9b3aec23a0e537c151380.zip | |
std.Target: rename `defaultCCallingConvention` and `Cpu.Arch.fromCallconv`
Diffstat (limited to 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index 630101fd07..a3ffe1bc3a 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -9499,11 +9499,11 @@ fn zirFunc( break :exported zir_decl.flags.is_export; }; if (fn_is_exported) { - break :cc target.defaultCCallingConvention() orelse { + break :cc target.cCallingConvention() orelse { // This target has no default C calling convention. We sometimes trigger a similar // error by trying to evaluate `std.builtin.CallingConvention.c`, so for consistency, // let's eval that now and just get the transitive error. (It's guaranteed to error - // because it does the exact `defaultCCallingConvention` call we just did.) + // because it does the exact `cCallingConvention` call we just did.) const cc_type = try sema.getBuiltinType("CallingConvention"); _ = try sema.namespaceLookupVal( block, @@ -9717,7 +9717,7 @@ fn checkCallConvSupportsVarArgs(sema: *Sema, block: *Block, src: LazySrcLoc, cc: _ = options; var first = true; for (calling_conventions_supporting_var_args) |cc_inner| { - for (std.Target.Cpu.Arch.fromCallconv(cc_inner)) |supported_arch| { + for (std.Target.Cpu.Arch.fromCallingConvention(cc_inner)) |supported_arch| { if (supported_arch == ctx.arch) break; } else continue; // callconv not supported by this arch if (!first) { |
