Simplifies a conditional operator ?: when one of the branches is a constant true or false.

So a ? b : false gets turned into a && b and a ? true : b gets turned into a || b .