We were previously bypassing the conditional expression special case for binary conditional expressions. Also, dig through the OpaqueValueExpr on the left of the ?:.
rdar://64134411
Paths
| Differential D81751
[SemaObjC] Fix a -Wobjc-signed-char-bool false-positive with binary conditional operator ClosedPublic Authored by erik.pilkington on Jun 12 2020, 11:06 AM.
Details Summary We were previously bypassing the conditional expression special case for binary conditional expressions. Also, dig through the OpaqueValueExpr on the left of the ?:. rdar://64134411
Diff Detail
Event TimelineHerald added subscribers: ributzka, dexonsmith, jkorous. · View Herald TranscriptJun 12 2020, 11:06 AM Comment Actions This looks good to me.
Closed by commit rG2f71cf6d77c5: [SemaObjC] Fix a -Wobjc-signed-char-bool false-positive with binary conditional… (authored by erik.pilkington). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 276130 clang/lib/Sema/SemaChecking.cpp
clang/test/SemaObjC/signed-char-bool-conversion.m
|
Can you use BinaryConditionalOperator::getCommon here?