-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Fix struct ReturnKind on SysV AMD64. #116194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
3784150
5730cd0
9a718cb
1760969
ae4fdfc
c1c609e
a5c9613
dbd7587
44fa203
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1299,6 +1299,15 @@ ReturnKind MethodDesc::ParseReturnKindFromSig(INDEBUG(bool supportStringConstruc | |
| regKinds[i] = RT_Scalar; | ||
| } | ||
| } | ||
|
|
||
| if (eeClass->GetEightByteClassification(0) == SystemVClassificationTypeSSE) | ||
| { | ||
| // Skip over SSE types since they do not consume integer registers. | ||
| // An obj/byref in the 2nd eight bytes will be in the first integer register. | ||
| regKinds[0] = regKinds[1]; | ||
| regKinds[1] = RT_Scalar; | ||
| } | ||
|
||
|
|
||
| ReturnKind structReturnKind = GetStructReturnKind(regKinds[0], regKinds[1]); | ||
| return structReturnKind; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.