Skip to content

Commit 030d68e

Browse files
AaronBallmantru
authored andcommitted
Fix a c23 -> c2x think-o
1 parent 2a41d97 commit 030d68e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Parse/ParseDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3997,7 +3997,7 @@ void Parser::ParseDeclarationSpecifiers(
39973997
break;
39983998
case tok::kw_thread_local:
39993999
if (getLangOpts().C2x)
4000-
Diag(Tok, diag::warn_c23_compat_keyword) << Tok.getName();
4000+
Diag(Tok, diag::warn_c2x_compat_keyword) << Tok.getName();
40014001
// We map thread_local to _Thread_local in C23 mode so it retains the C
40024002
// semantics rather than getting the C++ semantics.
40034003
// FIXME: diagnostics will show _Thread_local when the user wrote

0 commit comments

Comments
 (0)