[PATCH] D66122: [CodeGen] Emit dynamic initializers for static TLS vars in outlined scopes

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 22 11:58:47 PDT 2019


efriedma added a comment.

Oh, I somehow forgot that was legal. :(  That breaks this whole approach (well, maybe the lambda could capture "w", but that seems way too complicated).  So we're left with a few possibilities:

1. an error
2. undefined behavior (probably we would want to warn in this case)
3. capturing the address of the thread_local variable


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66122/new/

https://reviews.llvm.org/D66122





More information about the cfe-commits mailing list