The type context argument must be initialized to lvOnFrame if it is
not a register argument (as on x86, since it is passed after user
arguments).
Commit migrated from https://github.com/dotnet/coreclr/commit/
4e7444549e94d6c4857448fe74434a0ae7fb8272
}
#endif
}
+#ifndef LEGACY_BACKEND
+ else
+ {
+ // For the RyuJIT backend, we need to mark these as being on the stack,
+ // as this is not done elsewhere in the case that canEnreg returns false.
+ varDsc->lvOnFrame = true;
+ }
+#endif // !LEGACY_BACKEND
compArgSize += TARGET_POINTER_SIZE;