File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3030#endif
3131
3232// Opaque ISAs need to use object_getClass which is in runtime.h
33- #if SWIFT_HAS_OPAQUE_ISAS
33+ #if SWIFT_OBJC_INTEROP && SWIFT_HAS_OPAQUE_ISAS
3434#include < objc/runtime.h>
3535#endif
3636
@@ -172,7 +172,7 @@ class TypeInfo {
172172 // / Note, in this case, the object may or may not have a non-pointer ISA.
173173 // / Masking, or otherwise, may be required to get a class pointer.
174174 static inline const ClassMetadata *_swift_getClassOfAllocated (const void *object) {
175- #if SWIFT_HAS_OPAQUE_ISAS
175+ #if SWIFT_OBJC_INTEROP && SWIFT_HAS_OPAQUE_ISAS
176176 // The ISA is opaque so masking it will not return a pointer. We instead
177177 // need to call the objc runtime to get the class.
178178 id idObject = reinterpret_cast <id>(const_cast <void *>(object));
You can’t perform that action at this time.
0 commit comments