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)
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)
The following code:
https://godbolt.org/z/nzeK5b51j
On the system, the error of the compiler is:
minTest_test_task_ThrdPrivate.zip