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 @@ -5348,9 +5348,8 @@ void Parser::ParseMicrosoftRootSignatureAttributeArgs(ParsedAttributes &Attrs) {
5348
5348
if (!StrLiteral.has_value ()) {
5349
5349
Diag (Tok, diag::err_expected_string_literal)
5350
5350
<< /* in attributes...*/ 4 << RootSignatureIdent->getName ();
5351
- SkipUntil (tok::r_square, StopAtSemi | StopBeforeMatch);
5352
- if (Tok.is (tok::r_paren))
5353
- T.consumeClose ();
5351
+ SkipUntil (tok::r_paren, StopAtSemi | StopBeforeMatch);
5352
+ T.consumeClose ();
5354
5353
return ;
5355
5354
}
5356
5355
@@ -5372,9 +5371,7 @@ void Parser::ParseMicrosoftRootSignatureAttributeArgs(ParsedAttributes &Attrs) {
5372
5371
SmallVector<llvm::hlsl::rootsig::RootElement> Elements;
5373
5372
hlsl::RootSignatureParser Parser (Elements, Lexer, PP);
5374
5373
if (Parser.parse ()) {
5375
- SkipUntil (tok::r_square, StopAtSemi | StopBeforeMatch);
5376
- if (Tok.is (tok::r_paren))
5377
- T.consumeClose ();
5374
+ T.consumeClose ();
5378
5375
return ;
5379
5376
}
5380
5377
You can’t perform that action at this time.
0 commit comments