File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -97,9 +97,9 @@ class RootSignatureParser {
97
97
// / of &Clause.Space (uint32_t *) and update the parameter
98
98
// /
99
99
// / and 'bReg' must be specified
100
- bool parseParams (
101
- llvm::SmallDenseMap<RootSignatureToken::Kind, llvm::hlsl::rootsig::ParamType> &Params,
102
- llvm::SmallDenseSet<RootSignatureToken::Kind> &Mandatory);
100
+ bool parseParams (llvm::SmallDenseMap<RootSignatureToken::Kind,
101
+ llvm::hlsl::rootsig::ParamType> &Params,
102
+ llvm::SmallDenseSet<RootSignatureToken::Kind> &Mandatory);
103
103
104
104
// / Parameter parse methods corresponding to a ParamType
105
105
bool parseUIntParam (uint32_t *X);
Original file line number Diff line number Diff line change @@ -128,7 +128,8 @@ bool RootSignatureParser::parseDescriptorTableClause() {
128
128
if (parseParams (Params, Mandatory))
129
129
return true ;
130
130
131
- if (consumeExpectedToken (TokenKind::pu_r_paren, diag::err_hlsl_unexpected_end_of_params,
131
+ if (consumeExpectedToken (TokenKind::pu_r_paren,
132
+ diag::err_hlsl_unexpected_end_of_params,
132
133
/* param of=*/ ParamKind))
133
134
return true ;
134
135
@@ -204,10 +205,11 @@ bool RootSignatureParser::parseUIntParam(uint32_t *X) {
204
205
}
205
206
206
207
bool RootSignatureParser::parseRegister (Register *Register) {
207
- assert (
208
- (CurToken.TokKind == TokenKind::bReg || CurToken.TokKind == TokenKind::tReg ||
209
- CurToken.TokKind == TokenKind::uReg || CurToken.TokKind == TokenKind::sReg ) &&
210
- " Expects to only be invoked starting at given keyword" );
208
+ assert ((CurToken.TokKind == TokenKind::bReg ||
209
+ CurToken.TokKind == TokenKind::tReg ||
210
+ CurToken.TokKind == TokenKind::uReg ||
211
+ CurToken.TokKind == TokenKind::sReg ) &&
212
+ " Expects to only be invoked starting at given keyword" );
211
213
212
214
switch (CurToken.TokKind ) {
213
215
default :
You can’t perform that action at this time.
0 commit comments