[all-commits] [llvm/llvm-project] 8bfb35: [Sema] Fix a -Wobjc-signed-char-bool false-positive
Erik Pilkington via All-commits
all-commits at lists.llvm.org
Mon Nov 18 12:15:27 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 8bfb353bb33cd2bcd2ef28e36eb8b90123b153c4
https://github.com/llvm/llvm-project/commit/8bfb353bb33cd2bcd2ef28e36eb8b90123b153c4
Author: Erik Pilkington <erik.pilkington at gmail.com>
Date: 2019-11-18 (Mon, 18 Nov 2019)
Changed paths:
M clang/lib/AST/Expr.cpp
M clang/test/SemaObjC/signed-char-bool-conversion.m
Log Message:
-----------
[Sema] Fix a -Wobjc-signed-char-bool false-positive
Unsigned bit-field flags can only have boolean values, so handle that case in
Expr::isKnownToHaveBooleanValue.
rdar://56256999
More information about the All-commits
mailing list