Don't remove dead indirections that may throw. (#40226)
authorEugene Rozenfeld <erozen@microsoft.com>
Mon, 3 Aug 2020 21:59:27 +0000 (14:59 -0700)
committerGitHub <noreply@github.com>
Mon, 3 Aug 2020 21:59:27 +0000 (14:59 -0700)
commit985f8ef146f6c19a7190acaa9c48e3334cb54616
tree4c8b1caf19d909ceeb62b3369a86b9031977795a
parenta5d291720e6504a60548f071f3a84194db8a7249
Don't remove dead indirections that may throw. (#40226)

Liveness incorrectly removed indirection rhs's of dead assignments.
This change fixes that.

Fixes #39823.
src/coreclr/src/jit/liveness.cpp
src/coreclr/src/jit/lower.cpp
src/coreclr/src/jit/lower.h
src/tests/JIT/Regression/JitBlue/GitHub_39823/GitHub_39823.cs [new file with mode: 0644]
src/tests/JIT/Regression/JitBlue/GitHub_39823/GitHub_39823.csproj [new file with mode: 0644]