Skip to content

Conversation

@SunilKuravinakop
Copy link
Contributor

@SunilKuravinakop SunilKuravinakop commented Nov 14, 2025

Same changes as in fix for 165276 except for remove unnecessary include in test to restore Ubuntu build.
This is not needed as allocatable modifier is not applicable to the default clause in C/C++.

@llvmbot llvmbot added clang Clang issues not falling into any other category clang:frontend Language frontend issues, e.g. anything involving "Sema" clang:openmp OpenMP related changes to Clang labels Nov 14, 2025
@llvmbot
Copy link
Member

llvmbot commented Nov 14, 2025

@llvm/pr-subscribers-clang

Author: None (SunilKuravinakop)

Changes

Follow-up fix for #165276: remove unnecessary <vector> include in test to restore Ubuntu build.
This is not needed as allocatable modifier is not applicable to the default clause in C/C++.


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

2 Files Affected:

  • (modified) clang/lib/Sema/SemaOpenMP.cpp (+3-3)
  • (added) clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp (+91)
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp
index 81c591a00cfc6..31c8f0cd30c56 100644
--- a/clang/lib/Sema/SemaOpenMP.cpp
+++ b/clang/lib/Sema/SemaOpenMP.cpp
@@ -1364,15 +1364,15 @@ DSAStackTy::DSAVarData DSAStackTy::getDSA(const_iterator &Iter,
   DefaultDataSharingAttributes IterDA = Iter->DefaultAttr;
   switch (Iter->DefaultVCAttr) {
   case DSA_VC_aggregate:
-    if (!VD->getType()->isAggregateType())
+    if (!D->getType()->isAggregateType())
       IterDA = DSA_none;
     break;
   case DSA_VC_pointer:
-    if (!VD->getType()->isPointerType())
+    if (!D->getType()->isPointerType())
       IterDA = DSA_none;
     break;
   case DSA_VC_scalar:
-    if (!VD->getType()->isScalarType())
+    if (!D->getType()->isScalarType())
       IterDA = DSA_none;
     break;
   case DSA_VC_all:
diff --git a/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp b/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
new file mode 100644
index 0000000000000..ffafc9a9410b7
--- /dev/null
+++ b/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
@@ -0,0 +1,91 @@
+// RUN: %clangxx -Xclang -verify -Wno-vla -fopenmp -fopenmp-version=60 -x c++ -S -emit-llvm %s -o - | FileCheck %s
+// expected-no-diagnostics
+#ifndef HEADER
+#define HEADER
+
+int global;
+#define VECTOR_SIZE 4
+
+int main (int argc, char **argv) {
+  int i,n;
+  int x;
+
+  n = VECTOR_SIZE;
+
+  #pragma omp parallel masked firstprivate(x) num_threads(2)
+  {
+     int *xPtr = nullptr;
+     // scalar
+     #pragma omp task default(shared:scalar)
+     {
+       xPtr = &x;
+     }
+     #pragma omp taskwait
+
+     // pointer
+     #pragma omp task default(shared:pointer) shared(x)
+     {
+       xPtr = &x;
+     }
+     #pragma omp taskwait
+  }
+
+  int *aggregate[VECTOR_SIZE] = {0,0,0,0};
+  
+  #pragma omp parallel masked num_threads(2)
+  {
+     // aggregate
+     #pragma omp task default(shared:aggregate)
+     for(i=0;i<n;i++) {
+       aggregate[i] = &x;
+     }
+     #pragma omp taskwait
+
+     #pragma omp task default(shared:aggregate) shared(x)
+     for(i=0;i<n;i++) {
+       aggregate[i] = &x;
+     }
+     #pragma omp taskwait
+
+     // all
+     #pragma omp task default(shared:all)
+     for(i=0;i<n;i++) {
+       aggregate[i] = &x;
+     }
+     #pragma omp taskwait
+  }
+}
+
+#endif
+
+// CHECK-LABEL: define {{.*}}main.omp_outlined{{.*}}
+// CHECK-NEXT:  entry:
+// CHECK: %x.addr = alloca{{.*}}
+// CHECK: %xPtr = alloca{{.*}}
+// CHECK: store ptr null, ptr %xPtr{{.*}}
+// CHECK: store ptr %xPtr{{.*}}
+// CHECK: store ptr %x.addr{{.*}}
+// CHECK-NEXT:  {{.*}}call{{.*}}__kmpc_omp_task_alloc{{.*}}
+// CHECK: ret void
+//
+// CHECK: define {{.*}}main.omp_outlined{{.*}}
+// CHECK-NEXT:  entry:
+// CHECK-DAG: %i.addr = alloca{{.*}}
+// CHECK-DAG:  %n.addr = alloca{{.*}}
+// CHECK-DAG:  %aggregate.addr = alloca{{.*}}
+// CHECK-DAG:  %x.addr = alloca{{.*}}
+// CHECK: [[TMP0:%.*]] = load{{.*}}%i.addr{{.*}}
+// CHECK-NEXT:  [[TMP1:%.*]] = load{{.*}}%n.addr{{.*}}
+// CHECK-NEXT:  [[TMP2:%.*]] = load{{.*}}%aggregate.addr{{.*}}
+// CHECK-NEXT:  [[TMP3:%.*]] = load{{.*}}%x.addr{{.*}}
+// CHECK: store ptr [[TMP2]]{{.*}}
+// CHECK-NEXT:  {{.*}}call{{.*}}__kmpc_omp_task_alloc{{.*}}
+// CHECK: store ptr [[TMP2]]{{.*}}
+// CHECK: store ptr [[TMP3]]{{.*}}
+// CHECK-NEXT:  {{.*}}call{{.*}}__kmpc_omp_task_alloc{{.*}}
+// CHECK: store ptr [[TMP0]]{{.*}}
+// CHECK: store ptr [[TMP1]]{{.*}}
+// CHECK: store ptr [[TMP2]]{{.*}}
+// CHECK: store ptr [[TMP3]]{{.*}}
+// CHECK-NEXT:  {{.*}}call{{.*}}__kmpc_omp_task_alloc{{.*}}
+// CHECK: ret void

@chichunchen chichunchen self-requested a review November 14, 2025 20:19
…de in test to restore Ubuntu build.

This is not needed as allocatable modifier is not applicable to the default clause in C/C++.
@SunilKuravinakop SunilKuravinakop force-pushed the patch_fix_variable_category branch from da1b836 to aef0bf4 Compare November 14, 2025 20:35
Copy link
Contributor

@chichunchen chichunchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

@chichunchen chichunchen merged commit 88e9a78 into llvm:main Nov 14, 2025
10 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 14, 2025

LLVM Buildbot has detected a new failure on builder fuchsia-x86_64-linux running on fuchsia-debian-64-us-central1-a-1 while building clang at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/28076

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
[875/1466] Running the Clang regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using clang: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin/clang
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find cir-opt in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find clang-repl in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin/wasm-ld
-- Testing: 23107 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60..
FAIL: Clang :: OpenMP/parallel_default_variableCategory_codegen.cpp (16017 of 23107)
******************** TEST 'Clang :: OpenMP/parallel_default_variableCategory_codegen.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin/clang --driver-mode=g++ -Xclang -verify -Wno-vla -fopenmp -fopenmp-version=60 -x c++ -S -emit-llvm /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp -o - | /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin/FileCheck --allow-unused-prefixes /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin/clang --driver-mode=g++ -Xclang -verify -Wno-vla -fopenmp -fopenmp-version=60 -x c++ -S -emit-llvm /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp -o -
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin/FileCheck --allow-unused-prefixes /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
# .---command stderr------------
# | /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp:62:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: entry:
# |                ^
# | <stdin>:51:109: note: scanning from here
# | define internal void @main.omp_outlined(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #1 {
# |                                                                                                             ^
# | <stdin>:73:95: note: possible intended match here
# |  %17 = call ptr @__kmpc_omp_task_alloc(ptr @1, i32 %11, i32 1, i64 40, i64 16, ptr @.omp_task_entry.)
# |                                                                                               ^
# | 
# | Input file: <stdin>
# | Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
# |            .
# |           46:  call void (ptr, i32, ptr, ...) @__kmpc_fork_call(ptr @1, i32 4, ptr @main.omp_outlined.3, ptr %5, ptr %6, ptr %9, ptr %7) 
# |           47:  ret i32 0 
# |           48: } 
# |           49:  
# |           50: ; Function Attrs: noinline norecurse nounwind optnone uwtable 
# |           51: define internal void @main.omp_outlined(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #1 { 
# | next:62'0                                                                                                                 X error: no match found
# |           52:  %4 = alloca ptr, align 8 
Step 7 (check) failure: check (failure)
...
[875/1466] Running the Clang regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using clang: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin/clang
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find cir-opt in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find clang-repl in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:534: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin/wasm-ld
-- Testing: 23107 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60..
FAIL: Clang :: OpenMP/parallel_default_variableCategory_codegen.cpp (16017 of 23107)
******************** TEST 'Clang :: OpenMP/parallel_default_variableCategory_codegen.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin/clang --driver-mode=g++ -Xclang -verify -Wno-vla -fopenmp -fopenmp-version=60 -x c++ -S -emit-llvm /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp -o - | /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin/FileCheck --allow-unused-prefixes /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin/clang --driver-mode=g++ -Xclang -verify -Wno-vla -fopenmp -fopenmp-version=60 -x c++ -S -emit-llvm /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp -o -
# executed command: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-061q21wf/bin/FileCheck --allow-unused-prefixes /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
# .---command stderr------------
# | /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp:62:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: entry:
# |                ^
# | <stdin>:51:109: note: scanning from here
# | define internal void @main.omp_outlined(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #1 {
# |                                                                                                             ^
# | <stdin>:73:95: note: possible intended match here
# |  %17 = call ptr @__kmpc_omp_task_alloc(ptr @1, i32 %11, i32 1, i64 40, i64 16, ptr @.omp_task_entry.)
# |                                                                                               ^
# | 
# | Input file: <stdin>
# | Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
# |            .
# |           46:  call void (ptr, i32, ptr, ...) @__kmpc_fork_call(ptr @1, i32 4, ptr @main.omp_outlined.3, ptr %5, ptr %6, ptr %9, ptr %7) 
# |           47:  ret i32 0 
# |           48: } 
# |           49:  
# |           50: ; Function Attrs: noinline norecurse nounwind optnone uwtable 
# |           51: define internal void @main.omp_outlined(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #1 { 
# | next:62'0                                                                                                                 X error: no match found
# |           52:  %4 = alloca ptr, align 8 

@Prabhuk
Copy link
Contributor

Prabhuk commented Nov 14, 2025

@SunilKuravinakop -- Starting to see the same failures reported by build bot on our toolchain builders at Google:

https://luci-milo.appspot.com/ui/p/fuchsia/builders/prod/clang-host-linux-x64/b8698191145590128113/overview

Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/b/s/w/ir/x/w/llvm_build/bin/clang --driver-mode=g++ -Xclang -verify -Wno-vla -fopenmp -fopenmp-version=60 -x c++ -S -emit-llvm /b/s/w/ir/x/w/llvm-llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp -o - | /b/s/w/ir/x/w/llvm_build/bin/FileCheck --allow-unused-prefixes /b/s/w/ir/x/w/llvm-llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
# executed command: /b/s/w/ir/x/w/llvm_build/bin/clang --driver-mode=g++ -Xclang -verify -Wno-vla -fopenmp -fopenmp-version=60 -x c++ -S -emit-llvm /b/s/w/ir/x/w/llvm-llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp -o -
# executed command: /b/s/w/ir/x/w/llvm_build/bin/FileCheck --allow-unused-prefixes /b/s/w/ir/x/w/llvm-llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
# .---command stderr------------
# | /b/s/w/ir/x/w/llvm-llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp:62:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: entry:
# |                ^
# | <stdin>:51:109: note: scanning from here
# | define internal void @main.omp_outlined(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #1 {
# |                                                                                                             ^
# | <stdin>:73:95: note: possible intended match here
# |  %17 = call ptr @__kmpc_omp_task_alloc(ptr @1, i32 %11, i32 1, i64 40, i64 16, ptr @.omp_task_entry.)
# |                                                                                               ^
# | 
# | Input file: <stdin>
# | Check file: /b/s/w/ir/x/w/llvm-llvm-project/clang/test/OpenMP/parallel_default_variableCategory_codegen.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
# |            .
# |           46:  call void (ptr, i32, ptr, ...) @__kmpc_fork_call(ptr @1, i32 4, ptr @main.omp_outlined.3, ptr %5, ptr %6, ptr %9, ptr %7) 
# |           47:  ret i32 0 
# |           48: } 
# |           49:  
# |           50: ; Function Attrs: noinline norecurse nounwind optnone uwtable 
# |           51: define internal void @main.omp_outlined(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #1 { 
# | next:62'0                                                                                                                 X error: no match found
# |           52:  %4 = alloca ptr, align 8 
# | next:62'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           53:  %5 = alloca ptr, align 8 
# | next:62'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           54:  %6 = alloca i64, align 8 
# | next:62'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           55:  %7 = alloca ptr, align 8 
# | next:62'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           56:  %8 = alloca %struct.anon, align 8 
# | next:62'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            .
# |            .
# |            .
# |           68:  store ptr null, ptr %7, align 8 
# | next:62'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           69:  %15 = getelementptr inbounds nuw %struct.anon, ptr %8, i32 0, i32 0 
# | next:62'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           70:  store ptr %7, ptr %15, align 8 
# | next:62'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           71:  %16 = getelementptr inbounds nuw %struct.anon, ptr %8, i32 0, i32 1 
# | next:62'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           72:  store ptr %6, ptr %16, align 8 
# | next:62'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           73:  %17 = call ptr @__kmpc_omp_task_alloc(ptr @1, i32 %11, i32 1, i64 40, i64 16, ptr @.omp_task_entry.) 
# | next:62'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:62'1                                                                                                   ?        possible intended match
# |           74:  %18 = getelementptr inbounds nuw %struct.kmp_task_t_with_privates, ptr %17, i32 0, i32 0 
# | next:62'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           75:  %19 = getelementptr inbounds nuw %struct.kmp_task_t, ptr %18, i32 0, i32 0 
# | next:62'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           76:  %20 = load ptr, ptr %19, align 8 
# | next:62'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           77:  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %8, i64 16, i1 false) 
# | next:62'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           78:  %21 = call i32 @__kmpc_omp_task(ptr @1, i32 %11, ptr %17) 
# | next:62'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            .
# |            .
# |            .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

@Prabhuk
Copy link
Contributor

Prabhuk commented Nov 14, 2025

@chichunchen @SunilKuravinakop -- please fix forward or consider reverting. Let me know if we can do anything from our end to help you root cause the issue.

@chichunchen
Copy link
Contributor

Just reverted it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang:frontend Language frontend issues, e.g. anything involving "Sema" clang:openmp OpenMP related changes to Clang clang Clang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants