[PATCH] D34331: func.wrap.func.con: Unset function before destroying anything
Volodymyr Sapsai via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 22 14:04:35 PDT 2018
vsapsai updated this revision to Diff 139506.
vsapsai added a comment.
- Replace `function::operator=(nullptr);` with `*this = nullptr;`
https://reviews.llvm.org/D34331
Files:
libcxx/include/__functional_03
libcxx/include/functional
libcxx/test/libcxx/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/move_reentrant.pass.cpp
libcxx/test/libcxx/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign_reentrant.pass.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34331.139506.patch
Type: text/x-patch
Size: 6447 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180322/f7f80c4b/attachment.bin>
More information about the cfe-commits
mailing list