Skip to content

Commit

Permalink
Fix some niche crashes while lexing invalid splices at global scope.
Browse files Browse the repository at this point in the history
Closes llvm#17.
  • Loading branch information
katzdm committed Mar 24, 2024
1 parent aec5052 commit 7b2b108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Parse/ParseDecl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3528,7 +3528,7 @@ void Parser::ParseDeclarationSpecifiers(
case tok::l_splice:
if (ParseCXXIndeterminateSplice()) {
DS.SetTypeSpecError();
break;
return;
}
continue;

Expand Down

0 comments on commit 7b2b108

Please sign in to comment.