[all-commits] [llvm/llvm-project] 68e223: [libc++] Value-initialize unique_ptr's deleter_type
Johan Berg via All-commits
all-commits at lists.llvm.org
Wed Nov 24 14:31:46 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 68e2231f8724eec26c9fcf5c5330fae897f9435f
https://github.com/llvm/llvm-project/commit/68e2231f8724eec26c9fcf5c5330fae897f9435f
Author: Johan Berg <47738833+bergjohan at users.noreply.github.com>
Date: 2021-11-24 (Wed, 24 Nov 2021)
Changed paths:
M libcxx/include/__memory/unique_ptr.h
M libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/default.pass.cpp
M libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/nullptr.pass.cpp
M libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/pointer.pass.cpp
M libcxx/test/support/deleter_types.h
Log Message:
-----------
[libc++] Value-initialize unique_ptr's deleter_type
According to the C++ standard, the stored pointer and the stored deleter
should be value-initialized.
Differential Revision: https://reviews.llvm.org/D113612
More information about the All-commits
mailing list