We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21783bb commit 38ef388Copy full SHA for 38ef388
src/coreclr/inc/safemath.h
@@ -481,6 +481,9 @@ template<typename T> class ClrSafeInt
481
Which ought to inline nicely
482
*/
483
// Returns true if safe, false for overflow.
484
+#if defined(_MSC_VER) && defined(HOST_ARM64) // Workaround for https://github.com/dotnet/runtime/issues/93442
485
+#pragma optimize("", off)
486
+#endif
487
static bool multiply(T lhs, T rhs, T &result)
488
{
489
if(Is64Bit())
@@ -675,6 +678,9 @@ template<typename T> class ClrSafeInt
675
678
}
676
679
677
680
681
682
+#pragma optimize("", on)
683
684
685
// Returns true if safe, false on overflow
686
static inline bool addition(T lhs, T rhs, T &result)
0 commit comments