Fix incorrect use of aligned allocation in get_temporary_buffer.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@345403 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2016,7 +2016,7 @@ get_temporary_buffer(ptrdiff_t __n) _NOEXCEPT
|
||||
__n = __m;
|
||||
while (__n > 0)
|
||||
{
|
||||
#if !defined(_LIBCPP_HAS_NO_LIBRARY_ALIGNED_ALLOCATION)
|
||||
#if !defined(_LIBCPP_HAS_NO_ALIGNED_ALLOCATION)
|
||||
if (__is_overaligned_for_new(__alignof(_Tp)))
|
||||
{
|
||||
std::align_val_t __al =
|
||||
|
||||
Reference in New Issue
Block a user