-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[LoongArch64] Fix some errors of the struct argument parsing in LoongArch64PassStructInRegister.cs #98744
Conversation
hi @shushanhf , @jkotas |
} | ||
|
||
Debug.Assert(fieldIndex < numIntroducedFields); | ||
Debug.Assert(fieldIndex <= numIntroducedFields); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whan can fieldIndex == numIntroducedFields
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fieldIndex
may be equal to numIntroducedFields
before the condition if (field.IsStatic)
;
But it can't be equal here. Thank you very much, I will amend it.
{ | ||
continue; | ||
return (uint)StructFloatFieldInfoFlags.STRUCT_NO_FLOAT_FIELD; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this case be rather handled in the default:
case of the switch statement below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will amend this, thank you!
…Arch64PassStructInRegister.cs
7be578b
to
6cbbf1d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
LGTM
hi @jkotas ,Could you please review this PR again ? Thank you very much. |
This PR is part of the issue #69705 to amend the LA's port.
Fix some errors of the struct argument parsing in LoongArch64PassStructInRegister.cs