[libcxx] r345234 - Fix use of __libcpp_deallocate in dynarray

Eric Fiselier eric at efcs.ca
Wed Oct 24 19:36:31 PDT 2018


Author: ericwf
Date: Wed Oct 24 19:36:31 2018
New Revision: 345234

URL: http://llvm.org/viewvc/llvm-project?rev=345234&view=rev
Log:
Fix use of __libcpp_deallocate in dynarray

Modified:
    libcxx/trunk/include/experimental/dynarray

Modified: libcxx/trunk/include/experimental/dynarray
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/experimental/dynarray?rev=345234&r1=345233&r2=345234&view=diff
==============================================================================
--- libcxx/trunk/include/experimental/dynarray (original)
+++ libcxx/trunk/include/experimental/dynarray Wed Oct 24 19:36:31 2018
@@ -146,7 +146,7 @@ private:
 
     static inline _LIBCPP_INLINE_VISIBILITY
     void __deallocate_value(value_type* __ptr ) noexcept {
-        _VSTD::__libcpp_deallocate(static_cast<void *>(__ptr), __alignof(value_type));
+        _VSTD::__libcpp_deallocate_unsized(static_cast<void *>(__ptr), __alignof(value_type));
     }
 
 public:




More information about the libcxx-commits mailing list