JIT: fix return type mismatch inlining block
authorAndy Ayers <andya@microsoft.com>
Tue, 25 Apr 2017 23:06:44 +0000 (16:06 -0700)
committerAndy Ayers <andya@microsoft.com>
Tue, 25 Apr 2017 23:06:44 +0000 (16:06 -0700)
commit7f8a620ea74dfb57e52320601addda68e2f53f53
treee2f966f8433c7b63e098ace59ccc959971beb83e
parentba865396ef0ec788d36fa9d5fff58ea11bf0a395
JIT: fix return type mismatch inlining block

If caller passes a directly substitutable expression whose
type is compatible with but not the same as the callee argument type,
and that argument is the callee's return value, the jit may
reject inlining the method because of a return type mismatch.

Fix is to retype the expressions we use in the callee's body
as the callee's type.

Closes #11211.
src/jit/importer.cpp