[libcxx-commits] [libcxx] [libc++][NFC] Fix comment about size-based vector (PR #208463)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 9 06:37:30 PDT 2026


https://github.com/ldionne created https://github.com/llvm/llvm-project/pull/208463

The closing #endif comment was using _LIBCPP_ABI_SIZE_BASED_VECTOR, which was the name of the macro in previous iterations of the size-based vector patch. We ended up landing on _LIBCPP_ABI_VECTOR_LAYOUT_SIZE_BASED instead.

>From 698402eafed2ff10c82936683c5c7cac1fd69a22 Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Thu, 9 Jul 2026 09:36:15 -0400
Subject: [PATCH] [libc++][NFC] Fix comment about size-based vector

The closing #endif comment was using _LIBCPP_ABI_SIZE_BASED_VECTOR, which
was the name of the macro in previous iterations of the size-based vector
patch. We ended up landing on _LIBCPP_ABI_VECTOR_LAYOUT_SIZE_BASED instead.
---
 libcxx/include/__vector/layout.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libcxx/include/__vector/layout.h b/libcxx/include/__vector/layout.h
index 61910a42fd708..3318a13a8ede1 100644
--- a/libcxx/include/__vector/layout.h
+++ b/libcxx/include/__vector/layout.h
@@ -459,7 +459,7 @@ _LIBCPP_CONSTEXPR_SINCE_CXX20 bool __vector_layout<_Tp, _Alloc>::__invariants()
     return false;
   return __end_ <= __capacity_;
 }
-#endif // _LIBCPP_ABI_SIZE_BASED_VECTOR
+#endif // _LIBCPP_ABI_VECTOR_LAYOUT_SIZE_BASED
 
 _LIBCPP_END_NAMESPACE_STD
 



More information about the libcxx-commits mailing list