Issue 149708
Summary [Flang][OpenMP][Debug] Assertion `DbgUsers.empty()' failed.
Labels bug
Assignees
Reporter k-arrows
    Reproducer:
```f90
 procedure(g), pointer :: f
  !$omp parallel
   f => g
  !$omp end parallel
contains
  subroutine g
    integer :: i, j, k
    !$omp taskloop firstprivate (j, k)
    do i = 1, 2
    end do
  end subroutine g
end
```

When I use assertion-enabled flang, compiling the above reproducer by "flang -fopenmp -g" causes the following assertion failure:
```txt
llvm-project/llvm/lib/Transforms/Utils/CodeExtractor.cpp:1290: void fixupDebugInfoPostExtraction(llvm::Function &, llvm::Function &, llvm::CallInst &, const SetVector<llvm::Value *> &, ArrayRef<llvm::Value *>): Assertion `DbgUsers.empty()' failed.
``` 
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to