Skip to content

Commit 99f2bc2

Browse files
committed
Add braces to silence -Wdangling-else; NFC
1 parent 55f5994 commit 99f2bc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/Sema/SemaChecking.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)