From 921314db60c1f3c0da7123b56ff8c221db6003aa Mon Sep 17 00:00:00 2001 From: Sergey Andreenko Date: Wed, 19 Oct 2016 09:37:55 -0700 Subject: [PATCH] fix compilation compilation error without ready to run. Commit migrated from https://github.com/dotnet/coreclr/commit/7e51701cf141dacd8e1426dfc1b90118fedb5d39 --- src/coreclr/src/jit/importer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/coreclr/src/jit/importer.cpp b/src/coreclr/src/jit/importer.cpp index 2f5bc44..8c1f97be 100644 --- a/src/coreclr/src/jit/importer.cpp +++ b/src/coreclr/src/jit/importer.cpp @@ -5779,6 +5779,7 @@ GenTreePtr Compiler::impImportStaticFieldAccess(CORINFO_RESOLVED_TOKEN* pResolve } case CORINFO_FIELD_STATIC_READYTORUN_HELPER: { +#ifdef FEATURE_READYTORUN_COMPILER noway_assert(opts.IsReadyToRun()); CORINFO_GENERICHANDLE_RESULT embedInfo; info.compCompHnd->embedGenericHandle(pResolvedToken, FALSE, &embedInfo); @@ -5798,6 +5799,9 @@ GenTreePtr Compiler::impImportStaticFieldAccess(CORINFO_RESOLVED_TOKEN* pResolve op1->gtCall.setEntryPoint(pFieldInfo->fieldLookup); break; +#else + unreached(); +#endif // FEATURE_READYTORUN_COMPILER } default: { -- 2.7.4