Author: Aaron Ballman
Date: 2023-10-27T14:47:29+02:00
New Revision: 030d68ef2cd7ec5728e9d99a5a547f2d401a72a2

URL: 
https://github.com/llvm/llvm-project/commit/030d68ef2cd7ec5728e9d99a5a547f2d401a72a2
DIFF: 
https://github.com/llvm/llvm-project/commit/030d68ef2cd7ec5728e9d99a5a547f2d401a72a2.diff

LOG: Fix a c23 -> c2x think-o

Added: 
    

Modified: 
    clang/lib/Parse/ParseDecl.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index 46315cc4e4115e3..cf1e3a94de7fddd 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -3997,7 +3997,7 @@ void Parser::ParseDeclarationSpecifiers(
       break;
     case tok::kw_thread_local:
       if (getLangOpts().C2x)
-        Diag(Tok, diag::warn_c23_compat_keyword) << Tok.getName();
+        Diag(Tok, diag::warn_c2x_compat_keyword) << Tok.getName();
       // We map thread_local to _Thread_local in C23 mode so it retains the C
       // semantics rather than getting the C++ semantics.
       // FIXME: diagnostics will show _Thread_local when the user wrote


        
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to