[libcxx-commits] [libcxx] [libc++] Annotate the data member of variant with no_unique_address (PR #137783)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon May 5 10:44:56 PDT 2025
huixie90 wrote:
> > Exactly. If this PR does not do that, I think we should, as we are creating a new ABI mode anyway
>
> Makes sense. I'll try to take a stab at this. Converting to draft for now.
>
> @huixie90, I'm curious - does your suggestion mean there is an appetite to make the same layout optimization for std::optional? I'd expect it to be more impactful there.
yes I agree.
https://github.com/llvm/llvm-project/pull/137783
More information about the libcxx-commits
mailing list