File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,11 @@ extension std.string: Hashable {
198
198
@_alwaysEmitIntoClient
199
199
public func hash( into hasher: inout Hasher ) {
200
200
// Call std::hash<std::string>::operator()
201
+ #if os(Windows) // FIXME: https://github.com/swiftlang/swift/issues/77856
202
+ let cxxHash = __swift_interopHashOfString ( ) . callAsFunction ( self )
203
+ #else
201
204
let cxxHash = __swift_interopComputeHashOfString ( self )
205
+ #endif
202
206
hasher. combine ( cxxHash)
203
207
}
204
208
}
@@ -207,7 +211,11 @@ extension std.u16string: Hashable {
207
211
@_alwaysEmitIntoClient
208
212
public func hash( into hasher: inout Hasher ) {
209
213
// Call std::hash<std::u16string>::operator()
214
+ #if os(Windows) // FIXME: https://github.com/swiftlang/swift/issues/77856
215
+ let cxxHash = __swift_interopHashOfU16String ( ) . callAsFunction ( self )
216
+ #else
210
217
let cxxHash = __swift_interopComputeHashOfU16String ( self )
218
+ #endif
211
219
hasher. combine ( cxxHash)
212
220
}
213
221
}
@@ -216,7 +224,11 @@ extension std.u32string: Hashable {
216
224
@_alwaysEmitIntoClient
217
225
public func hash( into hasher: inout Hasher ) {
218
226
// Call std::hash<std::u32string>::operator()
227
+ #if os(Windows) // FIXME: https://github.com/swiftlang/swift/issues/77856
228
+ let cxxHash = __swift_interopHashOfU32String ( ) . callAsFunction ( self )
229
+ #else
219
230
let cxxHash = __swift_interopComputeHashOfU32String ( self )
231
+ #endif
220
232
hasher. combine ( cxxHash)
221
233
}
222
234
}
You can’t perform that action at this time.
0 commit comments