Handle local struct pointer arithmetic (dotnet/coreclr#23704)
authorCarol Eidt <carol.eidt@microsoft.com>
Thu, 4 Apr 2019 16:31:30 +0000 (09:31 -0700)
committerGitHub <noreply@github.com>
Thu, 4 Apr 2019 16:31:30 +0000 (09:31 -0700)
commitade4b97f181d28ac99bd363ab5ee55659c307180
tree3f87597cc5d2e4e60ca531ab5727c6009a048f1d
parentccfdc8f88cebbfcfee307e8541bf42a1036ac82d
Handle local struct pointer arithmetic (dotnet/coreclr#23704)

The assert introduced in dotnet/coreclr#23570 was overly aggressive, and didn't account for the fact that pointer arithmetic can exist in the IL, not just introduced by morph.

Fix dotnet/coreclr#23693

Commit migrated from https://github.com/dotnet/coreclr/commit/abec165e0dd3ec2f5a46891f3c076b4c55149d56
src/coreclr/src/jit/importer.cpp