Skip to content

Commit 7b2b108

Browse files
committed
Fix some niche crashes while lexing invalid splices at global scope.
Closes llvm#17.
1 parent aec5052 commit 7b2b108

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Parse/ParseDecl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3528,7 +3528,7 @@ void Parser::ParseDeclarationSpecifiers(
35283528
case tok::l_splice:
35293529
if (ParseCXXIndeterminateSplice()) {
35303530
DS.SetTypeSpecError();
3531-
break;
3531+
return;
35323532
}
35333533
continue;
35343534

0 commit comments

Comments
 (0)