| Issue |
179930
|
| Summary |
[flang][OpenMP] Target region in unused function causes build failure.
|
| Labels |
flang,
flang:openmp
|
| Assignees |
abidh
|
| Reporter |
abidh
|
The following code causes an assertion fail in the flang.
```
program concurrent_inferences
implicit none
!call target_sub()
contains
subroutine target_sub()
integer i
!$omp target
!$omp end target
end subroutine
end program
```
When compiled with the following command
`flang -fopenmp --offload-arch=gfx1100 -o test test.f90 -O1`
fails due to the following assertion.
`OpenMPOpt.cpp:4263: bool {anonymous}::AAKernelInfoFunction::changeToSPMDMode(llvm::Attributor&, llvm::ChangeStatus&): Assertion omp::isOpenMPKernel(*Kernel) && "Expected kernel function!" failed.`
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs