[all-commits] [llvm/llvm-project] d9957c: [Sema] Add a 'Semantic' parameter to Expr::isKnown...
Erik Pilkington via All-commits
all-commits at lists.llvm.org
Wed Nov 20 16:31:41 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: d9957c7405bc726422dbc2736ad62f704916fbe8
https://github.com/llvm/llvm-project/commit/d9957c7405bc726422dbc2736ad62f704916fbe8
Author: Erik Pilkington <erik.pilkington at gmail.com>
Date: 2019-11-20 (Wed, 20 Nov 2019)
Changed paths:
M clang/include/clang/AST/Expr.h
M clang/lib/AST/Expr.cpp
M clang/lib/Sema/SemaChecking.cpp
M clang/test/Sema/switch.c
Log Message:
-----------
[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!
More information about the All-commits
mailing list