JIT: fix regression when returning struct with no fields on SysV (dotnet/coreclr...
authorAndy Ayers <andya@microsoft.com>
Fri, 29 Jun 2018 16:32:44 +0000 (09:32 -0700)
committerGitHub <noreply@github.com>
Fri, 29 Jun 2018 16:32:44 +0000 (09:32 -0700)
commitceb6124f672b90fb7dd5d455a774a3d914a13dcd
tree99c1c8b2a5e881eba0d0634f47ea17ea57730f1c
parent74fadd98edc7f37d3af366b0a5c7bb2a42007eb6
JIT: fix regression when returning struct with no fields on SysV (dotnet/coreclr#18708)

The runtime classifies such structs as being returned by reference, so we
need to follow suit in the jit. If the classifier says the value can't be
returned in a register, then so be it.

Add a test case.

Commit migrated from https://github.com/dotnet/coreclr/commit/65d31999eb89e11a74fe8cbf25982a3ed33a564f
src/coreclr/src/jit/compiler.cpp
src/coreclr/tests/src/JIT/Regression/JitBlue/GitHub_18522/GitHub_18522_8.cs [new file with mode: 0644]
src/coreclr/tests/src/JIT/Regression/JitBlue/GitHub_18522/GitHub_18522_8.csproj [new file with mode: 0644]