This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The jit is fairly tolerant of byref/native int mismatches for inline arguments and return values. And some of the new unsafe helpers do this kind of reinterpretation across call boundaries as well. This sometimes leads the jit to lose track of byrefs. A general fix for this is likely somewhat involved. For now we simply detect if we're about to lose track of a byref when substituting a particular kind of return expression, and retype the expression to a byref. Fixes #21051. Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
- Loading branch information