JIT: fix regression when returning struct with no fields on SysV (#18708)
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)
commit65d31999eb89e11a74fe8cbf25982a3ed33a564f
tree605200021853209d2f292acf729bf5c21ef42941
parent7acc7194a25cd3965c310cc94479f09f7f80714c
JIT: fix regression when returning struct with no fields on SysV (#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.
src/jit/compiler.cpp
tests/src/JIT/Regression/JitBlue/GitHub_18522/GitHub_18522_8.cs [new file with mode: 0644]
tests/src/JIT/Regression/JitBlue/GitHub_18522/GitHub_18522_8.csproj [new file with mode: 0644]