HomePhabricator

[Sema] Add a 'Semantic' parameter to Expr::isKnownToHaveBooleanValue

Authored by erik.pilkington on Nov 20 2019, 3:39 PM.

Description

[Sema] Add a 'Semantic' parameter to Expr::isKnownToHaveBooleanValue

Some clients of this function want to know about any expression that is known
to produce a 0/1 value, and others care about expressions that are semantically
boolean.

This fixes a -Wswitch-bool regression I introduced in 8bfb353bb33c, pointed out
by Chris Hamilton!

Details

Committed
erik.pilkingtonNov 20 2019, 4:29 PM
Parents
rGa0da875a3ace: gn build: check-clang depends on llvm-cxxfilt.
Branches
Unknown
Tags
Unknown