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 {
9797 // / of &Clause.Space (uint32_t *) and update the parameter
9898 // /
9999 // / 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);
103103
104104 // / Parameter parse methods corresponding to a ParamType
105105 bool parseUIntParam (uint32_t *X);
Original file line number Diff line number Diff line change @@ -128,7 +128,8 @@ bool RootSignatureParser::parseDescriptorTableClause() {
128128 if (parseParams (Params, Mandatory))
129129 return true ;
130130
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,
132133 /* param of=*/ ParamKind))
133134 return true ;
134135
@@ -204,10 +205,11 @@ bool RootSignatureParser::parseUIntParam(uint32_t *X) {
204205}
205206
206207bool 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" );
211213
212214 switch (CurToken.TokKind ) {
213215 default :
You can’t perform that action at this time.
0 commit comments