[libcxx-commits] [PATCH] D104486: [libc++] Make sure std::allocator<void> is always trivial
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jun 22 09:05:33 PDT 2021
ldionne closed this revision.
ldionne added a comment.
commit 275ffa580880f6e18bf9742cad8e5dcab67b1f1d
Author: Louis Dionne <ldionne.2 at gmail.com>
Date: Wed Jun 16 12:35:00 2021 -0400
[libc++] Make sure std::allocator<void> is always trivial
When we removed the allocator<void> specialization, the triviality of
std::allocator<void> changed because the primary template had a
non-trivial default constructor and the specialization didn't
(so std::allocator<void> went from trivial to non-trivial).
This commit fixes that oversight by giving a trivial constructor to
the primary template when instantiated on cv-void.
This was reported in https://llvm.org/PR50299.
(cherry picked from commit 71e4d434dc83b02a853712a5cb026ee2fa9ba67f)
Differential Revision: https://reviews.llvm.org/D104486
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104486/new/
https://reviews.llvm.org/D104486
More information about the libcxx-commits
mailing list