fix compilation compilation error without ready to run.
authorSergey Andreenko <seandree@microsoft.com>
Wed, 19 Oct 2016 16:37:55 +0000 (09:37 -0700)
committerSergey Andreenko <seandree@microsoft.com>
Wed, 19 Oct 2016 16:37:55 +0000 (09:37 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/7e51701cf141dacd8e1426dfc1b90118fedb5d39

src/coreclr/src/jit/importer.cpp

index 2f5bc44..8c1f97b 100644 (file)
@@ -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:
         {