[clang] [C++20] [Modules] Do not generate call to module initialization for const init (PR #218346)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 25 19:08:34 PDT 2026
ChuanqiXu9 wrote:
> In the new test, for the cases using `thread_local`, in Darwin build `%itanium_abi_triple` will default to `arm64-apple-darwin-unknown`, which results in failure due to clang error:
>
> ```
> # | NoInit.cpp:7:1: error: thread-local storage is not supported for the current target
> [CONTEXT] # | 7 | thread_local int tls = f();
> [CONTEXT] # | | ^
> ```
Thanks for pointing this out. I'll try to fix it soon.
https://github.com/llvm/llvm-project/pull/218346
More information about the cfe-commits
mailing list