Disallow widening for explicit tailcalls (#55989)
authorJakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com>
Wed, 21 Jul 2021 09:29:36 +0000 (11:29 +0200)
committerGitHub <noreply@github.com>
Wed, 21 Jul 2021 09:29:36 +0000 (11:29 +0200)
commit94a843027c5fe3550ec9ba8568b8872aff47779d
treefbdd1ad5e1492955283bf720b6cb0d6b2c0b65cd
parent1a84b29e367493c50dc979d7897a386734b8fd7f
Disallow widening for explicit tailcalls (#55989)

It is a runtime detail that the managed calling convention widens return
values, so only allow this behavior for opportunistic tailcalls.

Fix #55253
src/coreclr/jit/compiler.h
src/coreclr/jit/importer.cpp
src/coreclr/jit/morph.cpp
src/tests/JIT/Regression/JitBlue/Runtime_54842/Runtime_54842.cs
src/tests/JIT/Regression/JitBlue/Runtime_55140/Runtime_55140.cs
src/tests/JIT/Regression/JitBlue/Runtime_55253/Runtime_55253.cs [new file with mode: 0644]
src/tests/JIT/Regression/JitBlue/Runtime_55253/Runtime_55253.csproj [new file with mode: 0644]