Workaround for compiler.hpp (1848) - Assertion failed 'lvRefCnt' (dotnet/coreclr...
authorSergey Andreenko <seandree@microsoft.com>
Fri, 8 Jun 2018 17:30:43 +0000 (10:30 -0700)
committerGitHub <noreply@github.com>
Fri, 8 Jun 2018 17:30:43 +0000 (10:30 -0700)
commit6bd3330170961b571bbc736df5c7f2b3bef630e7
tree7c4a36f63b046fef1986e50ffa947701091da04b
parent95b417e48e99fb9c5549e38c5617bd0da7b9ec4f
Workaround for  compiler.hpp (1848) - Assertion failed 'lvRefCnt' (dotnet/coreclr#18292)

* add test

* clean fgRemoveStmt a bit

* fix the issue (more like a workaround).

Commit migrated from https://github.com/dotnet/coreclr/commit/16169a8738ab7332a0fc2f2e48937997932798ef
src/coreclr/src/jit/assertionprop.cpp
src/coreclr/src/jit/flowgraph.cpp
src/coreclr/tests/src/JIT/Regression/JitBlue/GitHub_18291/GitHub_18291.il [new file with mode: 0644]
src/coreclr/tests/src/JIT/Regression/JitBlue/GitHub_18291/GitHub_18291.ilproj [new file with mode: 0644]