Consider the following program.
int test() {
int c;
#pragma omp target data map(tofrom: c)
{
#pragma omp target nowait
{
c = 2;
}
}
return c;
}
When compiled with clang -cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -debug-info-kind=standalone -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa, it fails with the following errors.
!dbg attachment points at wrong subprogram for function