Skip to content

Commit b175cc8

Browse files
committed
Shims: remove last remnant of Windows ARM64 workaround
The Windows ARM64 builds can require a newer build of VS2019 (update 3 or newer). This removes the workaround from the shims. This was needed for older installations of Visual Studio and no longer works with Visual Studio 2022.
1 parent c7a60a8 commit b175cc8

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

stdlib/public/SwiftShims/RefCount.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,19 +1610,6 @@ static_assert(sizeof(InlineRefCounts) == sizeof(__swift_uintptr_t),
16101610
static_assert(__alignof(InlineRefCounts) == __alignof(__swift_uintptr_t),
16111611
"InlineRefCounts must be pointer-aligned");
16121612

1613-
#if defined(_WIN32) && defined(_M_ARM64)
1614-
#if defined(__cplusplus)
1615-
namespace std {
1616-
template <>
1617-
inline void _Atomic_storage<swift::SideTableRefCountBits, 16>::_Unlock() const noexcept {
1618-
__dmb(0x8);
1619-
__iso_volatile_store32(&reinterpret_cast<volatile int &>(_Spinlock), 0);
1620-
__dmb(0x8);
1621-
}
1622-
}
1623-
#endif
1624-
#endif
1625-
16261613
#endif // !defined(__swift__)
16271614

16281615
#endif

0 commit comments

Comments
 (0)