ILLink analyzer recognizes &&
and ||
, but neither trimmer or ilc do
#102830
Labels
area-Tools-ILLink
.NET linker development as well as trimming analyzers
Milestone
The trim analyzer recognizes and understands
&&
and||
and will not warn for code that is guarded by a feature guard, but the trimmer and ilc don't understand it and will not eliminate the branch with problematic code and will warn if there is code that should be considered guarded.This is expected according to the feature-checks docs: https://github.com/dotnet/runtime/blob/main/docs/design/tools/illink/feature-checks.md#boolean-andor
If neither tool recognizes the pattern and will warn, does it make sense for the analyzer to not warn and leave the user surprised at publish?
The text was updated successfully, but these errors were encountered: