|
1 | 1 | // Licensed to the .NET Foundation under one or more agreements. |
2 | 2 | // The .NET Foundation licenses this file to you under the MIT license. |
3 | 3 | #include "gcinfoencoder.h" |
| 4 | + |
| 5 | +// HACK: debugreturn.h (included by gcinfoencoder.h) breaks constexpr |
| 6 | +#if defined(debug_instrumented_return) || defined(_DEBUGRETURN_H_) |
| 7 | +#undef return |
| 8 | +#endif // debug_instrumented_return |
| 9 | + |
4 | 10 | #include "interpreter.h" |
5 | 11 |
|
6 | 12 | #include <inttypes.h> |
@@ -35,7 +41,7 @@ static const InterpType g_interpTypeFromStackType[] = |
35 | 41 | }; |
36 | 42 |
|
37 | 43 | // Used by assertAbort |
38 | | -thread_local ICorJitInfo* gInterpJitInfoTls = nullptr; |
| 44 | +thread_local ICorJitInfo* t_InterpJitInfoTls = nullptr; |
39 | 45 |
|
40 | 46 | static const char *g_stackTypeString[] = { "I4", "I8", "R4", "R8", "O ", "VT", "MP", "F " }; |
41 | 47 |
|
@@ -902,7 +908,7 @@ InterpCompiler::InterpCompiler(COMP_HANDLE compHnd, |
902 | 908 | CORINFO_METHOD_INFO* methodInfo) |
903 | 909 | { |
904 | 910 | // Fill in the thread-local used for assertions |
905 | | - gInterpJitInfoTls = compHnd; |
| 911 | + t_InterpJitInfoTls = compHnd; |
906 | 912 |
|
907 | 913 | m_methodHnd = methodInfo->ftn; |
908 | 914 | m_compScopeHnd = methodInfo->scope; |
@@ -3466,8 +3472,8 @@ void InterpCompiler::PrintCompiledIns(const int32_t *ip, const int32_t *start) |
3466 | 3472 |
|
3467 | 3473 | extern "C" void assertAbort(const char* why, const char* file, unsigned line) |
3468 | 3474 | { |
3469 | | - if (gInterpJitInfoTls) { |
3470 | | - if (!gInterpJitInfoTls->doAssert(file, line, why)) |
| 3475 | + if (t_InterpJitInfoTls) { |
| 3476 | + if (!t_InterpJitInfoTls->doAssert(file, line, why)) |
3471 | 3477 | return; |
3472 | 3478 | } |
3473 | 3479 |
|
|
0 commit comments