Don't elide the use of the thread wrapper for a thread_local constinit
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 1 Oct 2019 01:23:23 +0000 (01:23 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 1 Oct 2019 01:23:23 +0000 (01:23 +0000)
commit8ac5c746fc49220e278cab0c0498e70cf3116ecf
tree9c87b6e9d6407f1aae856d4defb808895cf8821b
parent54167ea316d18d1358e732748c52cf8895af1f2b
Don't elide the use of the thread wrapper for a thread_local constinit
variable with non-trivial destruction.

We still need to invoke the thread wrapper to trigger registration of
the destructor call on thread shutdown.

llvm-svn: 373289
clang/lib/CodeGen/ItaniumCXXABI.cpp
clang/test/CodeGenCXX/cxx2a-thread-local-constinit.cpp