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
ScanAndProcessReturnValue uses the current origin to report warnings for method return values. The origin's IL offset is updated at certain spots in ReflectionMethodBodyScanner, but not for ret opcodes. Instead we just track the possible return values:
We probably should be tracking the IL offset for each ret instruction instead. I can't think of a case where this produces any different warning behavior, but it requires a workaround in how we handle trim analysis patterns in the linker.
The text was updated successfully, but these errors were encountered:
ScanAndProcessReturnValue
uses the current origin to report warnings for method return values. The origin's IL offset is updated at certain spots inReflectionMethodBodyScanner
, but not forret
opcodes. Instead we just track the possible return values:linker/src/linker/Linker.Dataflow/MethodBodyScanner.cs
Lines 574 to 583 in 2375cba
And later report warnings about the return value using the current origin (which will have whatever IL offset we last updated it to):
linker/src/linker/Linker.Dataflow/ReflectionMethodBodyScanner.cs
Lines 72 to 84 in 2375cba
We probably should be tracking the IL offset for each ret instruction instead. I can't think of a case where this produces any different warning behavior, but it requires a workaround in how we handle trim analysis patterns in the linker.
The text was updated successfully, but these errors were encountered: