diff options
| author | Cody Tapscott <topolarity@tapscott.me> | 2022-10-21 19:20:58 -0700 |
|---|---|---|
| committer | Cody Tapscott <topolarity@tapscott.me> | 2022-10-21 19:20:58 -0700 |
| commit | f0e66ac4d0e6347bf1b5a00b309fafb5da84191b (patch) | |
| tree | 8d4069daf068c09e1060a38c8d695f2deeb1b210 /src/codegen/llvm.zig | |
| parent | ddbdb83c865b1124487b3a00747fc5c1a67e5770 (diff) | |
| download | zig-f0e66ac4d0e6347bf1b5a00b309fafb5da84191b.tar.gz zig-f0e66ac4d0e6347bf1b5a00b309fafb5da84191b.zip | |
std.Target: Remove `longDoubleIs`
This function is redundant with CType.sizeInBits(), and until the
previous commit they disagreed about the correct long double type
for several targets. Although they're all synced up now, it's much
simpler just to have a single source of truth.
Diffstat (limited to 'src/codegen/llvm.zig')
| -rw-r--r-- | src/codegen/llvm.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig index b0d1588007..68e969f9e7 100644 --- a/src/codegen/llvm.zig +++ b/src/codegen/llvm.zig @@ -10615,8 +10615,8 @@ fn backendSupportsF128(target: std.Target) bool { fn intrinsicsAllowed(scalar_ty: Type, target: std.Target) bool { return switch (scalar_ty.tag()) { .f16 => backendSupportsF16(target), - .f80 => target.longDoubleIs(f80) and backendSupportsF80(target), - .f128 => target.longDoubleIs(f128) and backendSupportsF128(target), + .f80 => (CType.longdouble.sizeInBits(target) == 80) and backendSupportsF80(target), + .f128 => (CType.longdouble.sizeInBits(target) == 128) and backendSupportsF128(target), else => true, }; } |
