[llvm-bugs] [Bug 50761] Cherry-pick 71e4d434dc83b02a853712a5cb026ee2fa9ba67f to release/12.x

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 22 09:04:59 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=50761

Louis Dionne <ldionne at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #3 from Louis Dionne <ldionne at apple.com> ---
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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210622/9f2b2826/attachment.html>


More information about the llvm-bugs mailing list