================
----------------
xakep8 wrote:
```cpp
struct D { ~D(); };
template<class T> struct X {
static D d;
};
template<class T> D X<T>::d;
D *use() { return &X<int>::d; }
```
threadsafe is false, but the variable is not TLS. CIR will register its
destructor with __cxa_thread_atexit instead of __cxa_atexit.
https://github.com/llvm/llvm-project/pull/228586
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits