JIT: In morph, only call DefinesLocal on assignments (dotnet/coreclr#22753)
authorAndy Ayers <andya@microsoft.com>
Tue, 26 Feb 2019 19:39:46 +0000 (11:39 -0800)
committerGitHub <noreply@github.com>
Tue, 26 Feb 2019 19:39:46 +0000 (11:39 -0800)
commitdb4c631f07e816493a8d767c2dffefde5239f452
tree95e007969bad5710c313db7a3062a7bd1312cec3
parent54cf3a84b92898f500dbb244f2e54ec3ae7a40f5
JIT: In morph, only call DefinesLocal on assignments (dotnet/coreclr#22753)

When checking for local assertions to kill in morph, only call `DefinesLocal` on `GT_ASG` nodes.

Also, assert that we never see LIR style assignments.

Resolves dotnet/coreclr#22747.

Commit migrated from https://github.com/dotnet/coreclr/commit/56697257c4e24aa24a64b70eb4ce07d91882005b
src/coreclr/src/jit/morph.cpp