Fix Issue 22436 - noway_assert 'expTyp == cseLclVarTyp' in optcse.cpp Commit migrated from https://github.com/dotnet/coreclr/commit/bb0c2df97117060ad21371cfe71fb27e727cd27c