浏览代码

Fix use of __libcpp_deallocate in dynarray

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@345234 91177308-0d34-0410-b5e6-96231b3b80d8
Eric Fiselier 6 年之前
父节点
当前提交
d03e037f46
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/experimental/dynarray

+ 1 - 1
include/experimental/dynarray

@@ -146,7 +146,7 @@ private:
 
 
     static inline _LIBCPP_INLINE_VISIBILITY
     static inline _LIBCPP_INLINE_VISIBILITY
     void __deallocate_value(value_type* __ptr ) noexcept {
     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:
 public: