We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31b35de commit b7b51fcCopy full SHA for b7b51fc
clang-tools-extra/clang-tidy/bugprone/NarrowingConversionsCheck.cpp
@@ -622,6 +622,7 @@ void NarrowingConversionsCheck::check(const MatchFinder::MatchResult &Result) {
622
handleBinaryOperator(*Result.Context, *Op);
623
else if (const auto *Cast = Result.Nodes.getNodeAs<ImplicitCastExpr>("cast"))
624
handleImplicitCast(*Result.Context, *Cast);
625
- llvm_unreachable("must be binary operator or cast expression");
+ else
626
+ llvm_unreachable("must be binary operator or cast expression");
627
}
628
} // namespace clang::tidy::bugprone
0 commit comments