| Issue |
86791
|
| Summary |
Compilation error on omp threadprivate when -fopenmp-targets=amdgcn-amd-amdhsa
|
| Labels |
clang:codegen,
crash,
clang:openmp
|
| Assignees |
|
| Reporter |
fel-cab
|
The following code:
```
int GlobalVar;
#pragma omp threadprivate(GlobalVar)
int main() {
GlobalVar = 1;
}
```
https://godbolt.org/z/nzeK5b51j
On the system, the error of the compiler is:
```
Function return type does not match operand type of return inst!
ret ptr addrspace(1) %1
ptrfatal error: error in backend: Broken module found, compilation aborted!
clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
```
[minTest_test_task_ThrdPrivate.zip](https://github.com/llvm/llvm-project/files/14772628/minTest_test_task_ThrdPrivate.zip)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs