summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/jit/importer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jit/importer.cpp b/src/jit/importer.cpp
index aa63b8f812..3bbb3c2df8 100644
--- a/src/jit/importer.cpp
+++ b/src/jit/importer.cpp
@@ -11736,12 +11736,14 @@ DO_LDFTN:
// At present this can only be String
else if (clsFlags & CORINFO_FLG_VAROBJSIZE)
{
+#if COR_JIT_EE_VERSION > 460
if (eeGetEEInfo()->targetAbi == CORINFO_CORERT_ABI)
{
// The dummy argument does not exist in CoreRT
newObjThisPtr = nullptr;
}
else
+#endif
{
// This is the case for variable-sized objects that are not
// arrays. In this case, call the constructor with a null 'this'