JIT: handle byref-typed immediates in encoding (dotnet/coreclr#21477)
authorAndy Ayers <andya@microsoft.com>
Thu, 13 Dec 2018 00:54:08 +0000 (16:54 -0800)
committerGitHub <noreply@github.com>
Thu, 13 Dec 2018 00:54:08 +0000 (16:54 -0800)
commit52a8890da45ce320ce84fdc3975d887ff814c678
treee9055fa441966f23c417df0d115211229f27d858
parent91123521345af0da226b730d48cb0f445e2a56a0
JIT: handle byref-typed immediates in encoding (dotnet/coreclr#21477)

We may now retype some immediates (for instance RVA statics feeding into Spans)
as byrefs.  These need to be tracked as such during encoding so that the encoder
GC liveness tracking stays current.

Fixes the assert seen in dotnet/coreclr#21466.

Commit migrated from https://github.com/dotnet/coreclr/commit/962b1737249adcbf6eea9388463a042e4dc19288
src/coreclr/src/jit/codegenxarch.cpp