@@ -1475,25 +1475,13 @@ HeapObject* RefCounts<SideTableRefCountBits>::getHeapObject() {
1475
1475
// for use by SWIFT_HEAPOBJECT_NON_OBJC_MEMBERS
1476
1476
typedef swift::InlineRefCounts InlineRefCounts;
1477
1477
1478
- // __cplusplus
1479
- #endif
1480
-
1481
1478
// These assertions apply to both the C and the C++ declarations.
1482
- #if defined(_MSC_VER) && !defined(__clang__)
1483
1479
static_assert (sizeof (InlineRefCounts) == sizeof (InlineRefCountsPlaceholder),
1484
1480
" InlineRefCounts and InlineRefCountsPlaceholder must match" );
1485
1481
static_assert (sizeof (InlineRefCounts) == sizeof (__swift_uintptr_t ),
1486
1482
" InlineRefCounts must be pointer-sized" );
1487
1483
static_assert (__alignof(InlineRefCounts) == __alignof(__swift_uintptr_t ),
1488
1484
" InlineRefCounts must be pointer-aligned" );
1489
- #else
1490
- _Static_assert (sizeof (InlineRefCounts) == sizeof(InlineRefCountsPlaceholder),
1491
- "InlineRefCounts and InlineRefCountsPlaceholder must match");
1492
- _Static_assert (sizeof (InlineRefCounts) == sizeof(__swift_uintptr_t ),
1493
- "InlineRefCounts must be pointer-sized");
1494
- _Static_assert (_Alignof(InlineRefCounts) == _Alignof(__swift_uintptr_t ),
1495
- "InlineRefCounts must be pointer-aligned");
1496
- #endif
1497
1485
1498
1486
#if defined(_WIN32) && defined(_M_ARM64)
1499
1487
#if defined(__cplusplus)
@@ -1508,4 +1496,6 @@ inline void _Atomic_storage<swift::SideTableRefCountBits, 16>::_Unlock() const n
1508
1496
#endif
1509
1497
#endif
1510
1498
1499
+ #endif // !defined(__swift__)
1500
+
1511
1501
#endif
0 commit comments