File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -12473,7 +12473,7 @@ static void AnalyzeImplicitConversions(
1247312473 << OrigE->getSourceRange() << T->isBooleanType()
1247412474 << FixItHint::CreateReplacement(UO->getBeginLoc(), "!");
1247512475
12476- if (auto *BO = dyn_cast<BinaryOperator>(SourceExpr))
12476+ if (auto *BO = dyn_cast<BinaryOperator>(SourceExpr)) {
1247712477 if ((BO->getOpcode() == BO_And || BO->getOpcode() == BO_Or) &&
1247812478 BO->getLHS()->isKnownToHaveBooleanValue() &&
1247912479 BO->getRHS()->isKnownToHaveBooleanValue() &&
@@ -12513,6 +12513,7 @@ static void AnalyzeImplicitConversions(
1251312513 /*ExtraCheckForImplicitConversion=*/true);
1251412514 return;
1251512515 }
12516+ }
1251612517
1251712518 // For conditional operators, we analyze the arguments as if they
1251812519 // were being fed directly into the output.
You can’t perform that action at this time.
0 commit comments