PR42111: Use guarded initialization for thread-local variables with
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 5 Jun 2019 00:04:33 +0000 (00:04 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 5 Jun 2019 00:04:33 +0000 (00:04 +0000)
commit453b7caaf7f0112a7164cb132db5a39907abf6eb
tree297385bce7484aae715a795ce0e4ffabe66c07e7
parent577d59bc679d0348ed2f0d6e759fbc728c1f8dbd
PR42111: Use guarded initialization for thread-local variables with
unordered initialization and internal linkage.

We'll run their initializers once on each reference, so we need a guard
variable even though they only have a single definition.

llvm-svn: 362562
clang/lib/CodeGen/CGDeclCXX.cpp
clang/test/CodeGenCXX/cxx1y-variable-template.cpp