File tree 1 file changed +2
-1
lines changed 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -12473,7 +12473,7 @@ static void AnalyzeImplicitConversions(
12473
12473
<< OrigE->getSourceRange() << T->isBooleanType()
12474
12474
<< FixItHint::CreateReplacement(UO->getBeginLoc(), "!");
12475
12475
12476
- if (auto *BO = dyn_cast<BinaryOperator>(SourceExpr))
12476
+ if (auto *BO = dyn_cast<BinaryOperator>(SourceExpr)) {
12477
12477
if ((BO->getOpcode() == BO_And || BO->getOpcode() == BO_Or) &&
12478
12478
BO->getLHS()->isKnownToHaveBooleanValue() &&
12479
12479
BO->getRHS()->isKnownToHaveBooleanValue() &&
@@ -12513,6 +12513,7 @@ static void AnalyzeImplicitConversions(
12513
12513
/*ExtraCheckForImplicitConversion=*/true);
12514
12514
return;
12515
12515
}
12516
+ }
12516
12517
12517
12518
// For conditional operators, we analyze the arguments as if they
12518
12519
// were being fed directly into the output.
You can’t perform that action at this time.
0 commit comments