Fix JIT crash caused by GetType() == typeof(SealedClass) optimization (#33337)
authorEgor Bogatov <egorbo@gmail.com>
Wed, 11 Mar 2020 23:19:00 +0000 (02:19 +0300)
committerGitHub <noreply@github.com>
Wed, 11 Mar 2020 23:19:00 +0000 (16:19 -0700)
commit375d1373b8947224d0c6c945eba12a0e15ead97a
treee873bcb72e080393f450d61f38be15f31ecafc0c
parent17b28bad596209ee5f979ee96394ffa784c9c88b
Fix JIT crash caused by GetType() == typeof(SealedClass) optimization (#33337)

Downstream phases can't handle commas under JTRUE, so do more thorough cleanup in `fgFoldConditional` for JTRUE (and SWITCH).

Fixes #33333.
src/coreclr/src/jit/morph.cpp
src/coreclr/tests/src/JIT/Intrinsics/TypeEqualitySealed.cs [new file with mode: 0644]
src/coreclr/tests/src/JIT/Intrinsics/TypeEqualitySealed_r.csproj [new file with mode: 0644]
src/coreclr/tests/src/JIT/Intrinsics/TypeEqualitySealed_ro.csproj [new file with mode: 0644]