File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -5246,9 +5246,8 @@ void Parser::ParseMicrosoftRootSignatureAttributeArgs(ParsedAttributes &Attrs) {
5246
5246
if (!StrLiteral.has_value ()) {
5247
5247
Diag (Tok, diag::err_expected_string_literal)
5248
5248
<< /* in attributes...*/ 4 << RootSignatureIdent->getName ();
5249
- SkipUntil (tok::r_square, StopAtSemi | StopBeforeMatch);
5250
- if (Tok.is (tok::r_paren))
5251
- T.consumeClose ();
5249
+ SkipUntil (tok::r_paren, StopAtSemi | StopBeforeMatch);
5250
+ T.consumeClose ();
5252
5251
return ;
5253
5252
}
5254
5253
@@ -5270,9 +5269,7 @@ void Parser::ParseMicrosoftRootSignatureAttributeArgs(ParsedAttributes &Attrs) {
5270
5269
SmallVector<llvm::hlsl::rootsig::RootElement> Elements;
5271
5270
hlsl::RootSignatureParser Parser (Elements, Lexer, PP);
5272
5271
if (Parser.parse ()) {
5273
- SkipUntil (tok::r_square, StopAtSemi | StopBeforeMatch);
5274
- if (Tok.is (tok::r_paren))
5275
- T.consumeClose ();
5272
+ T.consumeClose ();
5276
5273
return ;
5277
5274
}
5278
5275
You can’t perform that action at this time.
0 commit comments