Skip to content

Commit cce5775

Browse files
committed
[clang][Sema] NormalizedConstraint - fix MSVC "not all control paths return a value" warnings.
1 parent 90d5795 commit cce5775

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/include/clang/Sema/SemaConcept.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ struct NormalizedConstraint {
257257
case ConstraintKind::FoldExpanded:
258258
return FoldExpanded.Pattern->getBeginLoc();
259259
}
260+
llvm_unreachable("Unknown ConstraintKind enum");
260261
}
261262

262263
SourceLocation getEndLoc() const {
@@ -270,6 +271,7 @@ struct NormalizedConstraint {
270271
case ConstraintKind::FoldExpanded:
271272
return FoldExpanded.Pattern->getEndLoc();
272273
}
274+
llvm_unreachable("Unknown ConstraintKind enum");
273275
}
274276

275277
SourceRange getSourceRange() const { return {getBeginLoc(), getEndLoc()}; }

0 commit comments

Comments
 (0)