]> granicus.if.org Git - clang/commit
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)
commit904098e80cfea900c7744ea00f15087baec9c598
treec1a5d426e478ef9bec53208973775936676ef8b5
parent31328963a09f9781c9ace84b9f49ff5fdd79b6be
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362562 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDeclCXX.cpp
test/CodeGenCXX/cxx1y-variable-template.cpp