Fix to respect readonly prefix for multidimensional array Address method (dotnet...
authorKoundinya Veluri <kouvel@microsoft.com>
Thu, 27 Apr 2017 01:42:48 +0000 (18:42 -0700)
committerGitHub <noreply@github.com>
Thu, 27 Apr 2017 01:42:48 +0000 (18:42 -0700)
commit2d0e02d665c54b654b7775d15e7f5abf9e6d9852
tree01dd64da5b2b8225bed89de2eb4554f2ea8ebddd
parent437b7e498b9c6762d6205d8b20ec6f1de3f07bd9
Fix to respect readonly prefix for multidimensional array Address method (dotnet/coreclr#11245)

Fixes dotnet/coreclr#9414
- Added missing 'else' back from regression in https://github.com/dotnet/coreclr/commit/dotnet/coreclr@97b4ff0b438261ba11b357008630076054a6f25d#diff-edc46b80f57431489a82311948a8234dL6424, which has the effect of passing null to the Address method's instParam to indicate the readonly prefix in order to bypass the type check

Commit migrated from https://github.com/dotnet/coreclr/commit/0b3b3534c9a37732951d0540758d8fe722c8e974
src/coreclr/src/jit/importer.cpp
src/coreclr/tests/src/Regressions/coreclr/9414/readonlyPrefix.cs [new file with mode: 0644]
src/coreclr/tests/src/Regressions/coreclr/9414/readonlyPrefix.csproj [new file with mode: 0644]