[libcxx-commits] [libcxx] [libc++] Pass type information down to __libcpp_allocate (PR #118837)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Fri Dec 20 00:53:13 PST 2024


================
@@ -29,7 +29,7 @@ _LIBCPP_CONSTEXPR inline _LIBCPP_HIDE_FROM_ABI bool __is_overaligned_for_new(siz
 #endif
 }
 
-template <class... _Args>
+template <class _Tp, class... _Args>
----------------
philnik777 wrote:

Do you plan to actually use the type upstream? If not, I'd rather just pass the type to the `__libcpp_allocate` level. At that point the diff is already considerably smaller than before and we still gain a better API upstream.

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


More information about the libcxx-commits mailing list