Skip to content

Commit 2123282

Browse files
author
Finn Plummer
committed
review: use unreachable
1 parent d944fff commit 2123282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Parse/ParseHLSLRootSignature.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ bool RootSignatureParser::ParseDescriptorTableClause() {
9696
DescriptorTableClause Clause;
9797
switch (CurToken.Kind) {
9898
default:
99-
break; // Unreachable given Try + assert pattern
99+
llvm_unreachable("Switch for consumed token was not provided");
100100
case TokenKind::kw_CBV:
101101
Clause.Type = ClauseType::CBuffer;
102102
break;

0 commit comments

Comments
 (0)