[SemaObjC] Fix a -Wobjc-signed-char-bool false-positive with binary conditional operator
authorErik Pilkington <erik.pilkington@gmail.com>
Tue, 7 Jul 2020 15:13:47 +0000 (11:13 -0400)
committerErik Pilkington <erik.pilkington@gmail.com>
Tue, 7 Jul 2020 17:29:54 +0000 (13:29 -0400)
commit2f71cf6d77c5cc679968851080d0513d84ddccb6
tree7413ba9b8c6ae87f082389d604ef503717596331
parent7437a9496528b838e6939dbcbb69a0acb5e1332d
[SemaObjC] Fix a -Wobjc-signed-char-bool false-positive with binary conditional operator

We were previously bypassing the conditional expression special case for binary
conditional expressions.

rdar://64134411

Differential revision: https://reviews.llvm.org/D81751
clang/lib/Sema/SemaChecking.cpp
clang/test/SemaObjC/signed-char-bool-conversion.m