This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

This looks good to me.

clang/lib/Sema/SemaChecking.cpp
11825

Can you use BinaryConditionalOperator::getCommon here?

This revision was not accepted when it landed; it landed in state Needs Review.Jul 7 2020, 10:30 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 7 2020, 10:30 AM