Author: Simon Pilgrim Date: 2025-10-05T11:16:31Z New Revision: 76cff3bcdbe945c053f4c3a7d9c99c7c2ae2bb10
URL: https://github.com/llvm/llvm-project/commit/76cff3bcdbe945c053f4c3a7d9c99c7c2ae2bb10 DIFF: https://github.com/llvm/llvm-project/commit/76cff3bcdbe945c053f4c3a7d9c99c7c2ae2bb10.diff LOG: [clang][Sema] NormalizedConstraint - fix MSVC "not all control paths return a value" warnings. NFC. (#162004) Added: Modified: clang/include/clang/Sema/SemaConcept.h Removed: ################################################################################ diff --git a/clang/include/clang/Sema/SemaConcept.h b/clang/include/clang/Sema/SemaConcept.h index 51ca1e16331f5..bdd997b18cb08 100644 --- a/clang/include/clang/Sema/SemaConcept.h +++ b/clang/include/clang/Sema/SemaConcept.h @@ -257,6 +257,7 @@ struct NormalizedConstraint { case ConstraintKind::FoldExpanded: return FoldExpanded.Pattern->getBeginLoc(); } + llvm_unreachable("Unknown ConstraintKind enum"); } SourceLocation getEndLoc() const { @@ -270,6 +271,7 @@ struct NormalizedConstraint { case ConstraintKind::FoldExpanded: return FoldExpanded.Pattern->getEndLoc(); } + llvm_unreachable("Unknown ConstraintKind enum"); } SourceRange getSourceRange() const { return {getBeginLoc(), getEndLoc()}; } _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
