File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ struct SwiftError : SwiftErrorHeader {
78
78
// / This member is only available for native Swift errors.
79
79
const WitnessTable *errorConformance;
80
80
81
+ #if SWIFT_OBJC_INTEROP
81
82
// / The base type that introduces the `Hashable` conformance.
82
83
// / This member is only available for native Swift errors.
83
84
// / This member is lazily-initialized.
@@ -89,6 +90,7 @@ struct SwiftError : SwiftErrorHeader {
89
90
// / This member is lazily-initialized.
90
91
// / Instead of using it directly, call `getHashableConformance()`.
91
92
mutable std::atomic<const hashable_support::HashableWitnessTable *> hashableConformance;
93
+ #endif
92
94
93
95
// / Get a pointer to the value contained inside the indirectly-referenced
94
96
// / box reference.
@@ -143,13 +145,15 @@ struct SwiftError : SwiftErrorHeader {
143
145
const WitnessTable *getErrorConformance () const { return errorConformance; }
144
146
#endif
145
147
148
+ #if SWIFT_OBJC_INTEROP
146
149
// / Get the base type that conforms to `Hashable`.
147
150
// / Returns NULL if the type does not conform.
148
151
const Metadata *getHashableBaseType () const ;
149
152
150
153
// / Get the `Hashable` protocol witness table for the contained type.
151
154
// / Returns NULL if the type does not conform.
152
155
const hashable_support::HashableWitnessTable *getHashableConformance () const ;
156
+ #endif
153
157
154
158
// Don't copy or move, please.
155
159
SwiftError (const SwiftError &) = delete ;
You can’t perform that action at this time.
0 commit comments