Skip to content

Commit 17dd2fd

Browse files
committed
FB, fixes
1 parent 986813b commit 17dd2fd

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

src/coreclr/inc/contract.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1595,7 +1595,7 @@ typedef __SafeToUsePostCondition __PostConditionOK;
15951595
#define WRAPPER_NO_CONTRACT CUSTOM_WRAPPER_NO_CONTRACT(Contract)
15961596

15971597
// 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)
15991599
#define GC_TRIGGERS static_assert(false, "TriggersGC not supported in utilcode contracts")
16001600

16011601
#ifdef ENABLE_CONTRACTS_IMPL

src/coreclr/inc/ex.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -813,9 +813,6 @@ Exception *ExThrowWithInnerHelper(Exception *inner);
813813
PAL_CPP_TRY \
814814
{ \
815815
CAutoTryCleanup<STATETYPE> __autoCleanupTry(__state); \
816-
/* prevent annotations from being dropped by optimizations in debug */ \
817-
INDEBUG(static bool __alwayszero;) \
818-
INDEBUG(VolatileLoad(&__alwayszero);) \
819816
{ \
820817
/* Disallow returns to make exception handling work. */ \
821818
/* Some work is done after the catch, see EX_ENDTRY. */ \
@@ -864,9 +861,6 @@ Exception *ExThrowWithInnerHelper(Exception *inner);
864861
PAL_CPP_TRY \
865862
{ \
866863
CAutoTryCleanup<STATETYPE> __autoCleanupTry(__state); \
867-
/* prevent annotations from being dropped by optimizations in debug */ \
868-
INDEBUG(static bool __alwayszero;) \
869-
INDEBUG(VolatileLoad(&__alwayszero);) \
870864
{ \
871865
/* Disallow returns to make exception handling work. */ \
872866
/* Some work is done after the catch, see EX_ENDTRY. */ \

src/coreclr/vm/common.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,6 @@ namespace Loader
254254
#include "gcenv.interlocked.h"
255255
#include "gcenv.interlocked.inl"
256256

257-
#include "eecontract.h"
258-
259257
#include "util.hpp"
260258
#include "eepolicy.h"
261259

@@ -266,6 +264,7 @@ namespace Loader
266264
#include "cgensys.h"
267265
#include "ceemain.h"
268266
#include "hash.h"
267+
#include "eecontract.h"
269268
#include "pedecoder.h"
270269
#include "sstring.h"
271270
#include "slist.h"

0 commit comments

Comments
 (0)