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 810fc35 commit 20d8d0fCopy full SHA for 20d8d0f
stdlib/public/runtime/WeakReference.h
@@ -100,13 +100,15 @@ class WeakReferenceBits {
100
static_assert((NativeMarkerMask & heap_object_abi::SwiftSpareBitsMask)
101
== NativeMarkerMask,
102
"native marker mask must fall within Swift spare bits");
103
+#if SWIFT_OBJC_INTEROP
104
static_assert((NativeMarkerMask & heap_object_abi::ObjCReservedBitsMask)
105
== heap_object_abi::ObjCReservedBitsMask,
106
"native marker mask must contain all ObjC tagged pointer bits");
107
static_assert((NativeMarkerValue & heap_object_abi::ObjCReservedBitsMask)
108
== 0,
109
"native marker value must not interfere with ObjC bits");
-
110
+#endif
111
+
112
uintptr_t bits;
113
114
public:
0 commit comments