Skip to content

Commit 4cfaeee

Browse files
authored
Match the #ifdefs between _swift_isNonPointerIsaObjCClass and objectUsesNativeSwiftReferenceCounting (swiftlang#33510)
1 parent f911be8 commit 4cfaeee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/Private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class TypeInfo {
211211
static inline
212212
bool objectUsesNativeSwiftReferenceCounting(const void *object) {
213213
assert(!isObjCTaggedPointerOrNull(object));
214-
#if SWIFT_HAS_OPAQUE_ISAS
214+
#if SWIFT_OBJC_INTEROP && SWIFT_HAS_OPAQUE_ISAS
215215
// Fast path for opaque ISAs. We don't want to call
216216
// _swift_getClassOfAllocated as that will call object_getClass.
217217
// Instead we can look at the bits in the ISA and tell if its a

0 commit comments

Comments
 (0)