Skip to content

Commit a7ef619

Browse files
committed
review: remove unneeded returns after llvm_unreachable
1 parent 8bcb061 commit a7ef619

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
@@ -262,8 +262,8 @@ bool RootSignatureParser::ParseRootElement(bool First) {
262262
return ParseDescriptorTable();
263263
default:
264264
llvm_unreachable("Switch for an expected token was not provided");
265-
return true;
266265
}
266+
return true;
267267
}
268268

269269
bool RootSignatureParser::ParseDescriptorTable() {
@@ -328,7 +328,6 @@ bool RootSignatureParser::ParseDescriptorTableClause() {
328328
break;
329329
default:
330330
llvm_unreachable("Switch for an expected token was not provided");
331-
return true;
332331
}
333332
Clause.SetDefaultFlags();
334333

@@ -453,7 +452,6 @@ bool RootSignatureParser::ParseRegister(Register *Register) {
453452
break;
454453
default:
455454
llvm_unreachable("Switch for an expected token was not provided");
456-
return true;
457455
}
458456

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

0 commit comments

Comments
 (0)