[clang] [llvm] [Clang][CodeGen] Handle TLS variables for non-zero Global ASes (PR #238159)

Alex Voicu via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 4 04:50:37 PST 2026


https://github.com/AlexVlx commented:

> LGTM.  This feels a little weird, but I guess it makes sense: we know the uses of a thread-local will always pass it to CreateThreadLocalAddress().  (There was some discussion on https://reviews.llvm.org/D125291 of making the type a token, but that never happened.) 

Agreed on the oddity - the only other option would have been to handle casts within `CreateThreadLocalAddress`, but that seemed contrary to its design intent. We can probably revisit this in the future.

https://github.com/llvm/llvm-project/pull/238159


More information about the cfe-commits mailing list