-
Notifications
You must be signed in to change notification settings - Fork 5k
Fix logic in compareTypesForCast #31681
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
Conversation
We weren't careful enough with `__Canon` in some cases, which lead to unsafely returning `MustNot` when the cast outcome was not determined at jit time. Add an extra check, update comments, and add some test cases. Addresses the failures seen in dotnet#1195 (which was reverted).
NOTE: probably makes sense to return |
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!
Formatting failure seems bogus; I did not change the code in the jit, and the patch file produced is empty. |
x86 libraries "System.Threading.Tasks.Tests Work Item" has failed twice now, leaving no diagnostic output to work with. Fairly sure this is unrelated to this change and it fails intermittently in master too. Looks like this could be #2271 -- both failures in the above CI runs happen just after the 15 min mark. |
We weren't careful enough with
__Canon
in some cases, which lead to unsafelyreturning
MustNot
when the cast outcome was not determined at jit time.Add an extra check, update comments, and add some test cases.
Addresses the failures seen in #1195 (which was reverted).