File tree Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -1595,7 +1595,7 @@ typedef __SafeToUsePostCondition __PostConditionOK;
1595
1595
#define WRAPPER_NO_CONTRACT CUSTOM_WRAPPER_NO_CONTRACT (Contract)
1596
1596
1597
1597
// GC_NOTRIGGER allowed but not currently enforced at runtime
1598
- #define GC_NOTRIGGER STATIC_CONTRACT_GC_NOTRIGGER
1598
+ #define GC_NOTRIGGER do { STATIC_CONTRACT_GC_NOTRIGGER; } while ( 0 )
1599
1599
#define GC_TRIGGERS static_assert (false , " TriggersGC not supported in utilcode contracts" )
1600
1600
1601
1601
#ifdef ENABLE_CONTRACTS_IMPL
Original file line number Diff line number Diff line change @@ -813,9 +813,6 @@ Exception *ExThrowWithInnerHelper(Exception *inner);
813
813
PAL_CPP_TRY \
814
814
{ \
815
815
CAutoTryCleanup<STATETYPE> __autoCleanupTry (__state); \
816
- /* prevent annotations from being dropped by optimizations in debug */ \
817
- INDEBUG (static bool __alwayszero;) \
818
- INDEBUG (VolatileLoad (&__alwayszero);) \
819
816
{ \
820
817
/* Disallow returns to make exception handling work. */ \
821
818
/* Some work is done after the catch, see EX_ENDTRY. */ \
@@ -864,9 +861,6 @@ Exception *ExThrowWithInnerHelper(Exception *inner);
864
861
PAL_CPP_TRY \
865
862
{ \
866
863
CAutoTryCleanup<STATETYPE> __autoCleanupTry (__state); \
867
- /* prevent annotations from being dropped by optimizations in debug */ \
868
- INDEBUG (static bool __alwayszero;) \
869
- INDEBUG (VolatileLoad (&__alwayszero);) \
870
864
{ \
871
865
/* Disallow returns to make exception handling work. */ \
872
866
/* Some work is done after the catch, see EX_ENDTRY. */ \
Original file line number Diff line number Diff line change @@ -254,8 +254,6 @@ namespace Loader
254
254
#include " gcenv.interlocked.h"
255
255
#include " gcenv.interlocked.inl"
256
256
257
- #include " eecontract.h"
258
-
259
257
#include " util.hpp"
260
258
#include " eepolicy.h"
261
259
@@ -266,6 +264,7 @@ namespace Loader
266
264
#include " cgensys.h"
267
265
#include " ceemain.h"
268
266
#include " hash.h"
267
+ #include " eecontract.h"
269
268
#include " pedecoder.h"
270
269
#include " sstring.h"
271
270
#include " slist.h"
You can’t perform that action at this time.
0 commit comments