File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,8 @@ class RootSignatureParser {
69
69
bool parseDescriptorTable ();
70
70
bool parseDescriptorTableClause ();
71
71
72
- // / Each unique ParamType will have a custom parse method defined that we can
73
- // / use to invoke the parameters .
72
+ // / Each unique ParamType will have a custom parse method defined that can be
73
+ // / invoked to set a value to the referenced paramtype .
74
74
// /
75
75
// / This function will switch on the ParamType using std::visit and dispatch
76
76
// / onto the corresponding parse method
@@ -86,7 +86,7 @@ class RootSignatureParser {
86
86
// / TokenKind::kw_space, &Clause.Space
87
87
// / };
88
88
// / SmallDenseSet<TokenKind> Mandatory = {
89
- // / TokenKind::kw_numDescriptors
89
+ // / TokenKind::bReg
90
90
// / };
91
91
// /
92
92
// / We can read it is as:
Original file line number Diff line number Diff line change @@ -210,6 +210,8 @@ bool RootSignatureParser::parseRegister(Register *Register) {
210
210
" Expects to only be invoked starting at given keyword" );
211
211
212
212
switch (CurToken.Kind ) {
213
+ default :
214
+ llvm_unreachable (" Switch for consumed token was not provided" );
213
215
case TokenKind::bReg:
214
216
Register->ViewType = RegisterType::BReg;
215
217
break ;
@@ -222,8 +224,6 @@ bool RootSignatureParser::parseRegister(Register *Register) {
222
224
case TokenKind::sReg :
223
225
Register->ViewType = RegisterType::SReg;
224
226
break ;
225
- default :
226
- break ; // Unreachable given Try + assert pattern
227
227
}
228
228
229
229
if (handleUIntLiteral (&Register->Number ))
You can’t perform that action at this time.
0 commit comments