You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JIT: Late expansion of delegate calls can reorder null checks with other argument exceptions #75832
The JIT inlines delegate calls, which is done in lowering by inserting indirections to fetch the instance and target from the delegate object. However, the indirection that fetches the instance is inserted right after the existing 'this' argument node. This can reorder the null-check of the delegate object with exceptions thrown by other arguments.
For example, the following example throws NullReferenceException in release. It should throw DivisionByZeroException (as it does in debug).
Activity
JIT: Expand inlined delegate calls in correct order
JIT: Expand inlined delegate calls in correct order (#89175)