[mini] Emit a null check using MONO_EMIT_NEW_CHECK_THIS for GetArrayDataReference...
authorAleksey Kliger (λgeek) <aleksey@lambdageek.org>
Wed, 27 Jul 2022 12:09:41 +0000 (08:09 -0400)
committerGitHub <noreply@github.com>
Wed, 27 Jul 2022 12:09:41 +0000 (08:09 -0400)
commit35d11710f18ee43b389d6bc9d7155497aa3dad40
tree4138be344fcb5820eaeee1c43232059c877bae92
parent60e5f4090dcc8dcee34f19bc1cd83beb9f66f123
[mini] Emit a null check using MONO_EMIT_NEW_CHECK_THIS for GetArrayDataReference (#72897)

using MONO_EMIT_NULL_CHECK does not emit a null check in the backend
if the pointer is otherwise unused

Fixes https://github.com/dotnet/runtime/issues/72745
src/mono/mono/mini/intrinsics.c