diff options
author | Michal Strehovský <MichalStrehovsky@users.noreply.github.com> | 2017-12-08 11:44:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-08 11:44:08 +0300 |
commit | 6a666d585e17d6b1d59f9bd3dadcde42c72a4ab5 (patch) | |
tree | c01f6dab7597dc96a83a6d96c881afd22149bdc5 | |
parent | c61b65ff308a2199487a8f8bd38209d9862dc7f1 (diff) |
Fix CoreRT build break
-rw-r--r-- | src/Runtime.Base/src/System/Runtime/ExceptionHandling.cs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Runtime.Base/src/System/Runtime/ExceptionHandling.cs b/src/Runtime.Base/src/System/Runtime/ExceptionHandling.cs index 8745cc2e2..df3b91029 100644 --- a/src/Runtime.Base/src/System/Runtime/ExceptionHandling.cs +++ b/src/Runtime.Base/src/System/Runtime/ExceptionHandling.cs @@ -876,11 +876,10 @@ namespace System.Runtime return false; } -#if DEBUG +#if DEBUG && !INPLACE_RUNTIME private static EEType* s_pLowLevelObjectType; private static void AssertNotRuntimeObject(EEType* pClauseType) { -#if !INPLACE_RUNTIME // // The C# try { } catch { } clause expands into a typed catch of System.Object. // Since runtime has its own definition of System.Object, try { } catch { } might not do what @@ -898,14 +897,13 @@ namespace System.Runtime } Debug.Assert(!pClauseType->IsEquivalentTo(s_pLowLevelObjectType)); -#endif // !INPLACE_RUNTIME } -#endif // DEBUG +#endif // DEBUG && !INPLACE_RUNTIME private static bool ShouldTypedClauseCatchThisException(object exception, EEType* pClauseType) { -#if DEBUG +#if DEBUG && !INPLACE_RUNTIME AssertNotRuntimeObject(pClauseType); #endif |