Fix to respect readonly prefix for multidimensional array Address method (#11245)
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)
commit0b3b3534c9a37732951d0540758d8fe722c8e974
tree438a37c560404fbb420e0f4075940c04cda4b15d
parent0afaf64d63d27ea5eaa3878b2e638d0c62028195
Fix to respect readonly prefix for multidimensional array Address method (#11245)

Fixes #9414
- Added missing 'else' back from regression in https://github.com/dotnet/coreclr/commit/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
src/jit/importer.cpp
tests/src/Regressions/coreclr/9414/readonlyPrefix.cs [new file with mode: 0644]
tests/src/Regressions/coreclr/9414/readonlyPrefix.csproj [new file with mode: 0644]