Skip to content

Commit b7b51fc

Browse files
committed
Fix build
1 parent 31b35de commit b7b51fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang-tools-extra/clang-tidy/bugprone/NarrowingConversionsCheck.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,7 @@ void NarrowingConversionsCheck::check(const MatchFinder::MatchResult &Result) {
622622
handleBinaryOperator(*Result.Context, *Op);
623623
else if (const auto *Cast = Result.Nodes.getNodeAs<ImplicitCastExpr>("cast"))
624624
handleImplicitCast(*Result.Context, *Cast);
625-
llvm_unreachable("must be binary operator or cast expression");
625+
else
626+
llvm_unreachable("must be binary operator or cast expression");
626627
}
627628
} // namespace clang::tidy::bugprone

0 commit comments

Comments
 (0)