[libcxx] r345403 - Fix incorrect use of aligned allocation in get_temporary_buffer.
Eric Fiselier
eric at efcs.ca
Fri Oct 26 10:12:32 PDT 2018
Author: ericwf
Date: Fri Oct 26 10:12:32 2018
New Revision: 345403
URL: http://llvm.org/viewvc/llvm-project?rev=345403&view=rev
Log:
Fix incorrect use of aligned allocation in get_temporary_buffer.
Modified:
libcxx/trunk/include/memory
Modified: libcxx/trunk/include/memory
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/memory?rev=345403&r1=345402&r2=345403&view=diff
==============================================================================
--- libcxx/trunk/include/memory (original)
+++ libcxx/trunk/include/memory Fri Oct 26 10:12:32 2018
@@ -2016,7 +2016,7 @@ get_temporary_buffer(ptrdiff_t __n) _NOE
__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 =
More information about the libcxx-commits
mailing list