[Issue 22115] Optimize if (s.a == 3 ? s : null) to if (s.a == 3)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 11 08:09:10 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=22115

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@WalterBright created dlang/dmd pull request #12860 "fix Issue 22115 - Optimize
if (s.a == 3 ? s : null) to if (s.a == 3)" fixing this issue:

- fix Issue 22115 - Optimize if (s.a == 3 ? s : null) to if (s.a == 3)

https://github.com/dlang/dmd/pull/12860

--


More information about the Digitalmars-d-bugs mailing list