9b36f6e6da1ca772c41b1541a89290333b1aa745
Once comp(x != 0) is removed for a bool x, `int n = b ? 1 : 0` becomes a plain copy of the bool, and copy propagation replaced every load of n with `(b ? 1 : 0)`. Refuse copies between bool and non-bool variables rather than requiring identical types, which would also block legitimate copies such as dynamic -> object or Derived[] -> Base[].
Description
My contributions to icsharpcode/ILSpy: 16 commits, 3 merged PRs
202 KiB
0 Stars
1 Watchers
0 Forks
Languages
C#
99.9%