Skip to content

Commit 1d07824

Browse files
committed
review: remove unreachable return true
1 parent 2d763fe commit 1d07824

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/lib/Parse/ParseHLSLRootSignature.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,9 @@ bool RootSignatureParser::ParseRootElement() {
8989
switch (CurToken.Kind) {
9090
case TokenKind::kw_DescriptorTable:
9191
return ParseDescriptorTable();
92-
default:
93-
llvm_unreachable("Switch for an expected token was not provided");
92+
default: break;
9493
}
95-
return true;
94+
llvm_unreachable("Switch for an expected token was not provided");
9695
}
9796

9897
bool RootSignatureParser::ParseDescriptorTable() {

0 commit comments

Comments
 (0)