Skip to content
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

JIT: remove incorrect type deduction for an Unsafe.As case #93694

Merged
merged 1 commit into from
Oct 18, 2023

Commits on Oct 18, 2023

  1. JIT: remove incorrect type deduction for an Unsafe.As case

    Thanks to @SingleAccretion for the fix.
    
    The JIT was assuming that an indirectly accessed value type field had
    the type of the field, but that might not be the case if the field
    was accessed via `Unsafe.As`.
    
    Fix this by limiting type deduction from these indirectly accessed fields
    to only ref type fields.
    
    Closes dotnet#93650.
    AndyAyersMS committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    eeb9858 View commit details
    Browse the repository at this point in the history