Prince781 added a comment.

In D66122#1626412 <https://reviews.llvm.org/D66122#1626412>, @efriedma wrote:

> This might be a silly question, but what happens if the initializer for a 
> thread-local variable refers to another thread-local variable?  Do you need 
> to initialize both variables?  In what order?


If variable A's initializer references variable B, then it will call B's 
initializer. So when we call A's initializer, B's initialization completes 
before A's.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D66122



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to