[clang] [clang][openmp] Fixing Issue-162243 (PR #165562)

via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 29 06:39:28 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: None (Ritanya-B-Bharadwaj)

<details>
<summary>Changes</summary>

This fixes the issue - https://github.com/llvm/llvm-project/issues/162243 caused by https://github.com/llvm/llvm-project/pull/158134

---
Full diff: https://github.com/llvm/llvm-project/pull/165562.diff


1 Files Affected:

- (modified) clang/lib/Sema/SemaOpenMP.cpp (+1-1) 


``````````diff
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp
index 0fa21e89b1236..06b87a4208702 100644
--- a/clang/lib/Sema/SemaOpenMP.cpp
+++ b/clang/lib/Sema/SemaOpenMP.cpp
@@ -3286,7 +3286,7 @@ SemaOpenMP::ActOnOpenMPGroupPrivateDirective(SourceLocation Loc,
                                              ArrayRef<Expr *> VarList) {
   if (!getLangOpts().OpenMP || getLangOpts().OpenMP < 60) {
     Diag(Loc, diag::err_omp_unexpected_directive)
-        << getOpenMPDirectiveName(OMPD_groupprivate, getLangOpts().OpenMP);
+        << 1 << getOpenMPDirectiveName(OMPD_groupprivate, getLangOpts().OpenMP);
     return nullptr;
   }
   if (OMPGroupPrivateDecl *D = CheckOMPGroupPrivateDecl(Loc, VarList)) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/165562


More information about the cfe-commits mailing list