diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-08-14 10:36:24 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-14 10:36:24 -0700 |
| commit | 78fb9c0a177eeb8f5a103eb54c46b367082cfc75 (patch) | |
| tree | f89af6432920631a0290c972a62b1e8bcb3fd943 /src/Sema.zig | |
| parent | eb7f318ea897d51082b70c84591242735c8a2c53 (diff) | |
| parent | 4ef956ef140a1c8cf606cd9b6a9606c0a85bf934 (diff) | |
| download | zig-78fb9c0a177eeb8f5a103eb54c46b367082cfc75.tar.gz zig-78fb9c0a177eeb8f5a103eb54c46b367082cfc75.zip | |
Merge pull request #21031 from linusg/std-target-naming
std.Target: Function naming cleanup
Diffstat (limited to 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index 2d8858d7cd..cdcbee42a5 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -30943,7 +30943,7 @@ fn coerceVarArgParam( .Array => return sema.fail(block, inst_src, "arrays must be passed by reference to variadic function", .{}), .Float => float: { const target = zcu.getTarget(); - const double_bits = target.c_type_bit_size(.double); + const double_bits = target.cTypeBitSize(.double); const inst_bits = uncasted_ty.floatBits(target); if (inst_bits >= double_bits) break :float inst; switch (double_bits) { @@ -30956,21 +30956,21 @@ fn coerceVarArgParam( if (!try sema.validateExternType(uncasted_ty, .param_ty)) break :int inst; const target = zcu.getTarget(); const uncasted_info = uncasted_ty.intInfo(zcu); - if (uncasted_info.bits <= target.c_type_bit_size(switch (uncasted_info.signedness) { + if (uncasted_info.bits <= target.cTypeBitSize(switch (uncasted_info.signedness) { .signed => .int, .unsigned => .uint, })) break :int try sema.coerce(block, switch (uncasted_info.signedness) { .signed => Type.c_int, .unsigned => Type.c_uint, }, inst, inst_src); - if (uncasted_info.bits <= target.c_type_bit_size(switch (uncasted_info.signedness) { + if (uncasted_info.bits <= target.cTypeBitSize(switch (uncasted_info.signedness) { .signed => .long, .unsigned => .ulong, })) break :int try sema.coerce(block, switch (uncasted_info.signedness) { .signed => Type.c_long, .unsigned => Type.c_ulong, }, inst, inst_src); - if (uncasted_info.bits <= target.c_type_bit_size(switch (uncasted_info.signedness) { + if (uncasted_info.bits <= target.cTypeBitSize(switch (uncasted_info.signedness) { .signed => .longlong, .unsigned => .ulonglong, })) break :int try sema.coerce(block, switch (uncasted_info.signedness) { |
