File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
SILOptimizer/Differentiation Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ class DerivativeFunctionTypeError
422
422
Kind kind;
423
423
424
424
// / The type and index of a differentiability parameter or result.
425
- // / std::pair does not have a trivial copy constructor on FreeBSD <= 14 for
425
+ // / std::pair does not have a trivial copy constructor on FreeBSD for
426
426
// / ABI reasons, so we have to define our own type here instead
427
427
struct TypeAndIndex {
428
428
Type first;
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ struct DifferentiationInvoker {
71
71
72
72
// / The parent `apply` instruction and the witness associated with the
73
73
// / `IndirectDifferentiation` case.
74
- // / Note: This used to be a std::pair, but on FreeBSD <= 14 , libc++ is
74
+ // / Note: This used to be a std::pair, but on FreeBSD, libc++ is
75
75
// / configured with _LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR
76
76
// / and hence does not have a trivial copy constructor
77
77
struct IndirectDifferentiation {
Original file line number Diff line number Diff line change @@ -114,12 +114,10 @@ public typealias CLongDouble = Double
114
114
#error("CLongDouble needs to be defined for this OpenBSD architecture")
115
115
#endif
116
116
#elseif os(FreeBSD)
117
+ // On FreeBSD, long double is Float128 for arm64, which we don't have yet in
118
+ // Swift
117
119
#if arch(x86_64) || arch(i386)
118
120
public typealias CLongDouble = Float80
119
- #elseif arch(arm64)
120
- public typealias CLongDouble = Double
121
- #else
122
- #error("CLongDouble needs to be defined for this FreeBSD architecture")
123
121
#endif
124
122
#elseif $Embedded
125
123
#if arch(x86_64) || arch(i386)
You can’t perform that action at this time.
0 commit comments