[clang] [clang][Sema] NormalizedConstraint - fix MSVC "not all control paths return a value" warnings. NFC. (PR #162004)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 5 03:53:17 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Simon Pilgrim (RKSimon)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/162004.diff
1 Files Affected:
- (modified) clang/include/clang/Sema/SemaConcept.h (+2)
``````````diff
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()}; }
``````````
</details>
https://github.com/llvm/llvm-project/pull/162004
More information about the cfe-commits
mailing list