diff --git a/src/coreclr/inc/safemath.h b/src/coreclr/inc/safemath.h index ff1fcbee78115a..e40e267984b195 100644 --- a/src/coreclr/inc/safemath.h +++ b/src/coreclr/inc/safemath.h @@ -688,10 +688,6 @@ template class ClrSafeInt INDEBUG( mutable bool m_checkedOverflow; ) }; -#if defined(_MSC_VER) && defined(HOST_ARM64) // Workaround for https://github.com/dotnet/runtime/issues/93442 -#pragma optimize("", off) -#endif - template <> inline bool ClrSafeInt::multiply(int64_t lhs, int64_t rhs, int64_t &result) { @@ -878,10 +874,6 @@ inline bool ClrSafeInt::multiply(uint8_t lhs, uint8_t rhs, uint8_t &res return true; } -#if defined(_MSC_VER) && defined(HOST_ARM64) // Workaround for https://github.com/dotnet/runtime/issues/93442 -#pragma optimize("", on) -#endif - // Allows creation of a ClrSafeInt corresponding to the type of the argument. template ClrSafeInt AsClrSafeInt(T t)