File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -229,22 +229,22 @@ static Class getSwiftNativeNSErrorClass() {
229
229
// Swift source.
230
230
231
231
auto TheWitnessTable = SWIFT_LAZY_CONSTANT (dlsym (RTLD_DEFAULT,
232
- MANGLE_AS_STRING (MANGLE_SYM (So10CFErrorRefas5Error10FoundationWP ))));
232
+ MANGLE_AS_STRING (MANGLE_SYM (So10CFErrorRefas5Error10FoundationWa ))));
233
233
assert (TheWitnessTable &&
234
234
" Foundation overlay not loaded, or 'CFError : Error' conformance "
235
235
" not available" );
236
236
237
- return reinterpret_cast <const WitnessTable *>(TheWitnessTable);
237
+ return reinterpret_cast <const SWIFT_CC (swift) WitnessTable *(*)() >(TheWitnessTable)( );
238
238
}
239
239
240
240
static const HashableWitnessTable *getNSErrorConformanceToHashable () {
241
241
auto TheWitnessTable = SWIFT_LAZY_CONSTANT (dlsym (RTLD_DEFAULT,
242
- MANGLE_AS_STRING (MANGLE_SYM (So8NSObjectCs8Hashable10ObjectiveCWP ))));
242
+ MANGLE_AS_STRING (MANGLE_SYM (So8NSObjectCs8Hashable10ObjectiveCWa ))));
243
243
assert (TheWitnessTable &&
244
244
" ObjectiveC overlay not loaded, or 'NSObject : Hashable' conformance "
245
245
" not available" );
246
246
247
- return reinterpret_cast <const HashableWitnessTable *>(TheWitnessTable);
247
+ return reinterpret_cast <const SWIFT_CC (swift) HashableWitnessTable *(*)() >(TheWitnessTable)( );
248
248
}
249
249
250
250
bool SwiftError::isPureNSError () const {
You can’t perform that action at this time.
0 commit comments