Skip to content

Commit ae05366

Browse files
committed
review: remove unneeded returns after llvm_unreachable
1 parent 081bc87 commit ae05366

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/Parse/ParseHLSLRootSignature.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ bool RootSignatureParser::ParseRootElement(bool First) {
283283
return ParseDescriptorTable();
284284
default:
285285
llvm_unreachable("Switch for an expected token was not provided");
286-
return true;
287286
}
287+
return true;
288288
}
289289

290290
bool RootSignatureParser::ParseDescriptorTable() {
@@ -349,7 +349,6 @@ bool RootSignatureParser::ParseDescriptorTableClause() {
349349
break;
350350
default:
351351
llvm_unreachable("Switch for an expected token was not provided");
352-
return true;
353352
}
354353
Clause.SetDefaultFlags();
355354

@@ -474,7 +473,6 @@ bool RootSignatureParser::ParseRegister(Register *Register) {
474473
break;
475474
default:
476475
llvm_unreachable("Switch for an expected token was not provided");
477-
return true;
478476
}
479477

480478
Register->Number = CurTok->NumLiteral.getInt().getExtValue();

0 commit comments

Comments
 (0)