JIT: fix return type mismatch inline block for literal argument (#16966)
authorAndy Ayers <andya@microsoft.com>
Fri, 16 Mar 2018 15:07:30 +0000 (08:07 -0700)
committerGitHub <noreply@github.com>
Fri, 16 Mar 2018 15:07:30 +0000 (08:07 -0700)
commitf6213ca44958a2868d29f7ec806d24f5e84dde48
treec4166c083b8e87c3cdd3d8f460ce5d76bd811e3c
parent914e684fb155c53db8d33d35c4ecf108f40fca74
JIT: fix return type mismatch inline block for literal argument (#16966)

When we inline a method that returns one of its arguments, we need to make sure
to apply the callee's view of the argument type.

We fixed this for arguments that are caller locals in #11218. This change applies
similar logic to handle the case where the caller passes a literal constant.

Closes #16944.
src/jit/importer.cpp