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: relax assert in lvaSetDoNotEnregister #58597

Merged
merged 2 commits into from
Sep 5, 2021
Merged

Conversation

AndyAyersMS
Copy link
Member

@AndyAyersMS AndyAyersMS commented Sep 3, 2021

If user code reinterprets a non-struct local as a struct (say via Unsafe.As)
at a call site, then we may see DNER_IsStructArg used for that local. Remove
an assert and update the descriptive text.

Fixes #58518.

If user code reinterprets a non-struct local as a struct (say via `Unsafe.As`)
at a call site, then we may see `DNER_IsStructArg` ussed for that local. Remove
an assert and update the descriptive text.

Fixes #58515.
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Sep 3, 2021
@ghost
Copy link

ghost commented Sep 3, 2021

Tagging subscribers to this area: @JulieLeeMSFT
See info in area-owners.md if you want to be subscribed.

Issue Details

If user code reinterprets a non-struct local as a struct (say via Unsafe.As)
at a call site, then we may see DNER_IsStructArg used for that local. Remove
an assert and update the descriptive text.

Fixes #58515.

Author: AndyAyersMS
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@AndyAyersMS
Copy link
Member Author

cc @dotnet/jit-contrib

Copy link
Contributor

@sandreenko sandreenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JulieLeeMSFT JulieLeeMSFT added this to the 7.0.0 milestone Sep 3, 2021
@AndyAyersMS
Copy link
Member Author

CI failure is #11063.

@AndyAyersMS AndyAyersMS merged commit 86aed99 into dotnet:main Sep 5, 2021
@AndyAyersMS AndyAyersMS deleted the r58515 branch September 5, 2021 17:27
@ghost ghost locked as resolved and limited conversation to collaborators Oct 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assertion failed 'varTypeIsStruct(varDsc)' for a simple Unsafe usage
4 participants