[libcxx-commits] [libcxx] [libc++] Mark __{emplace, push}_back_slow_path as noinline (PR #94379)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed May 7 08:56:12 PDT 2025


================
@@ -1128,6 +1128,21 @@ vector<_Tp, _Allocator>::__emplace_back_slow_path(_Args&&... __args) {
   return this->__end_;
 }
 
+template <class _If, class _Else>
+_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 void __if_likely_else(bool __cond, _If __if, _Else __else) {
----------------
ldionne wrote:

This needs a comment explaining what's going on and why it's required. Also, a link to a LLVM bug report.

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


More information about the libcxx-commits mailing list