Fix mismatch between morph and lower (#53911)
authorBruce Forstall <brucefo@microsoft.com>
Fri, 11 Jun 2021 18:42:33 +0000 (11:42 -0700)
committerGitHub <noreply@github.com>
Fri, 11 Jun 2021 18:42:33 +0000 (11:42 -0700)
commite492dc7e84df190636f3ab7812930b6cdd1b7252
tree94d15d2586be2e8f534571a3d93ac4e0a0be95a3
parent6cea5f70d2e31a32572251ca63dac7ba10714e4f
Fix mismatch between morph and lower (#53911)

For x86 delegate invoke tailcall via helper calls,
Lower expects the `this` pointer in a LCL_VAR. Morph
(`fgMorphTailCallViaJitHelper`) was letting a LCL_FLD go through
instead of inserting a copy of the field to a temp local.

Simply change the condition in morph to match the condition in Lower.

Fixes #53568
src/coreclr/jit/morph.cpp