Skip to content

[OMPIRBuilder][clang] Verification failure with nowait on target construct and -g. #153043

@abidh

Description

@abidh

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

Metadata

Metadata

Assignees

Labels

crashPrefer [crash-on-valid] or [crash-on-invalid]debuginfollvm:openmpirbuilderIssues related to problems in the llvm-project/lib/Frontend/OpenMP/OMPIRBuilder.cpp

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions