Ignore modopts/modreqs for `UnsafeAccessor` field targets by AaronRobinsonMSFT · Pull Request #109694 · dotnet/runtime

@AaronRobinsonMSFT

The generated IL remains correct and doesn't
require a .volatile prefix for the generated accessor.
This is based off of what Roslyn currently emits if a
getter was available.

filipnavara

@AaronRobinsonMSFT

steveisok

This was referenced

Nov 11, 2024

mikelle-rogers pushed a commit to mikelle-rogers/runtime that referenced this pull request

Dec 10, 2024
)

* Ignore modopts/modreqs for `UnsafeAccessor` field targets

The generated IL remains correct and doesn't require a
.volatile prefix for the accessor. This is based off of what Roslyn
currently emits if an accessor was manually written.