Re-enable optimizations in interop helper functions. (#21016)
authorAaron Robinson <arobins@microsoft.com>
Thu, 15 Nov 2018 07:37:45 +0000 (23:37 -0800)
committerGitHub <noreply@github.com>
Thu, 15 Nov 2018 07:37:45 +0000 (23:37 -0800)
src/vm/interoputil.cpp

index 094b5f31d63bbaff75c764b943c4f05a9ae51845..8bb08e4e2a5ca54f66908f6e12c8093658c03b3d 100644 (file)
@@ -1493,11 +1493,6 @@ ULONG SafeReleasePreemp(IUnknown * pUnk, RCW * pRCW)
     return res;
 }
 
-#if defined(_TARGET_AMD64_) && defined(_MSC_VER)
-// codegen bug on amd64 causes BBT to fail for the following function.  as a
-// workaround I have disabled optimizations for it until we get an updated toolset.
-#pragma optimize( "", off )
-#endif
 //--------------------------------------------------------------------------------
 // Release helper, enables and disables GC during call-outs
 ULONG SafeRelease(IUnknown* pUnk, RCW* pRCW)
@@ -1574,10 +1569,6 @@ ULONG SafeRelease(IUnknown* pUnk, RCW* pRCW)
 
     return res;
 }
-#if defined(_TARGET_AMD64_) && defined(_MSC_VER)
-// turn optimizations back on
-#pragma optimize( "", on )
-#endif
 
 #include <optdefault.h>