diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2025-05-07 10:39:04 -0400 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2025-05-07 10:39:36 -0400 |
commit | 99f2bc2f5dc241140be2d0919b43d443fc79b83f (patch) | |
tree | aedfe4780e8c81a71feca56becfcc93fb799159d /clang/lib/Sema/SemaChecking.cpp | |
parent | 55f59940b1d8fec29c363589907bdf966bc64bdc (diff) | |
download | llvm-99f2bc2f5dc241140be2d0919b43d443fc79b83f.zip llvm-99f2bc2f5dc241140be2d0919b43d443fc79b83f.tar.gz llvm-99f2bc2f5dc241140be2d0919b43d443fc79b83f.tar.bz2 |
Add braces to silence -Wdangling-else; NFC
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r-- | clang/lib/Sema/SemaChecking.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index a5e0094..5dd231b 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -12473,7 +12473,7 @@ static void AnalyzeImplicitConversions( << OrigE->getSourceRange() << T->isBooleanType() << FixItHint::CreateReplacement(UO->getBeginLoc(), "!"); - if (auto *BO = dyn_cast<BinaryOperator>(SourceExpr)) + if (auto *BO = dyn_cast<BinaryOperator>(SourceExpr)) { if ((BO->getOpcode() == BO_And || BO->getOpcode() == BO_Or) && BO->getLHS()->isKnownToHaveBooleanValue() && BO->getRHS()->isKnownToHaveBooleanValue() && @@ -12513,6 +12513,7 @@ static void AnalyzeImplicitConversions( /*ExtraCheckForImplicitConversion=*/true); return; } + } // For conditional operators, we analyze the arguments as if they // were being fed directly into the output. |