Skip to content

Commit 8a464ec

Browse files
committed
review: remove unneeded returns after llvm_unreachable
1 parent d0b815b commit 8a464ec

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
@@ -255,8 +255,8 @@ bool RootSignatureParser::ParseRootElement(bool First) {
255255
return ParseDescriptorTable();
256256
default:
257257
llvm_unreachable("Switch for an expected token was not provided");
258-
return true;
259258
}
259+
return true;
260260
}
261261

262262
bool RootSignatureParser::ParseDescriptorTable() {
@@ -321,7 +321,6 @@ bool RootSignatureParser::ParseDescriptorTableClause() {
321321
break;
322322
default:
323323
llvm_unreachable("Switch for an expected token was not provided");
324-
return true;
325324
}
326325
Clause.SetDefaultFlags();
327326

@@ -446,7 +445,6 @@ bool RootSignatureParser::ParseRegister(Register *Register) {
446445
break;
447446
default:
448447
llvm_unreachable("Switch for an expected token was not provided");
449-
return true;
450448
}
451449

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

0 commit comments

Comments
 (0)