We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14a20ee commit 3ec3d9bCopy full SHA for 3ec3d9b
stdlib/public/runtime/SwiftObject.mm
@@ -196,8 +196,10 @@ Class _swift_classOfObjCHeapObject(OpaqueValue *value) {
196
@implementation SwiftObject
197
+ (void)initialize {
198
#if SWIFT_HAS_ISA_MASKING
199
- assert(&objc_debug_isa_class_mask);
200
- assert(objc_debug_isa_class_mask == SWIFT_ISA_MASK);
+ // Really old ObjC runtimes don't have this symbol, which is OK. If
+ // the symbol exists, then our value must match.
201
+ assert(&objc_debug_isa_class_mask == NULL ||
202
+ objc_debug_isa_class_mask == SWIFT_ISA_MASK);
203
#endif
204
}
205
0 commit comments