diff options
Diffstat (limited to 'src/jit/importer.cpp')
-rw-r--r-- | src/jit/importer.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/jit/importer.cpp b/src/jit/importer.cpp index d49300118c..05eb086fdf 100644 --- a/src/jit/importer.cpp +++ b/src/jit/importer.cpp @@ -4347,11 +4347,14 @@ NamedIntrinsic Compiler::lookupNamedIntrinsic(CORINFO_METHOD_HANDLE method) #else // !defined(_TARGET_XARCH_) && !defined(_TARGET_ARM64_) #error Unsupported platform #endif // !defined(_TARGET_XARCH_) && !defined(_TARGET_ARM64_) - else + else if (strcmp(methodName, "get_IsSupported") == 0) { - assert(strcmp(methodName, "get_IsSupported") == 0); return NI_IsSupported_False; } + else + { + return gtIsRecursiveCall(method) ? NI_Throw_PlatformNotSupportedException : NI_Illegal; + } } #endif // FEATURE_HW_INTRINSICS |