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 30
30
#endif
31
31
32
32
// 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
34
34
#include < objc/runtime.h>
35
35
#endif
36
36
@@ -172,7 +172,7 @@ class TypeInfo {
172
172
// / Note, in this case, the object may or may not have a non-pointer ISA.
173
173
// / Masking, or otherwise, may be required to get a class pointer.
174
174
static inline const ClassMetadata *_swift_getClassOfAllocated (const void *object) {
175
- #if SWIFT_HAS_OPAQUE_ISAS
175
+ #if SWIFT_OBJC_INTEROP && SWIFT_HAS_OPAQUE_ISAS
176
176
// The ISA is opaque so masking it will not return a pointer. We instead
177
177
// need to call the objc runtime to get the class.
178
178
id idObject = reinterpret_cast <id>(const_cast <void *>(object));
You can’t perform that action at this time.
0 commit comments