JIT: if IR and stack can't provide a ref class handle, use object (#239)
authorAndy Ayers <andya@microsoft.com>
Tue, 26 Nov 2019 08:16:37 +0000 (00:16 -0800)
committerGitHub <noreply@github.com>
Tue, 26 Nov 2019 08:16:37 +0000 (00:16 -0800)
commitffdb313d48f342ed61bca9177dd5dd599ec93711
treed89a3d771e5a23f7d506cca22036657a408f33e4
parentff2c9c0175130e28344a406b7681c35f583603c2
JIT: if IR and stack can't provide a ref class handle, use object (#239)

In some cases we may end up in `lvaSetClass` without a valid ref class handle
from either the IR or the stack. Use the handle for `object` as a conservative
fallback.

Closes dotnet/coreclr#27923.
src/coreclr/src/jit/lclvars.cpp
src/coreclr/tests/src/JIT/Regression/JitBlue/GitHub_27923/GitHub_27923.cs [new file with mode: 0644]
src/coreclr/tests/src/JIT/Regression/JitBlue/GitHub_27923/GitHub_27923.csproj [new file with mode: 0644]