From b175cc830a8237aa85bf9562abd47170ab2e2cf5 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sat, 4 Sep 2021 08:57:25 -0700 Subject: [PATCH] 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. --- stdlib/public/SwiftShims/RefCount.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/stdlib/public/SwiftShims/RefCount.h b/stdlib/public/SwiftShims/RefCount.h index 5499de8d56299..fc067f70f5504 100644 --- a/stdlib/public/SwiftShims/RefCount.h +++ b/stdlib/public/SwiftShims/RefCount.h @@ -1610,19 +1610,6 @@ static_assert(sizeof(InlineRefCounts) == sizeof(__swift_uintptr_t), static_assert(__alignof(InlineRefCounts) == __alignof(__swift_uintptr_t), "InlineRefCounts must be pointer-aligned"); -#if defined(_WIN32) && defined(_M_ARM64) -#if defined(__cplusplus) -namespace std { -template <> -inline void _Atomic_storage::_Unlock() const noexcept { - __dmb(0x8); - __iso_volatile_store32(&reinterpret_cast(_Spinlock), 0); - __dmb(0x8); -} -} -#endif -#endif - #endif // !defined(__swift__) #endif