[llvm-bugs] [Bug 51424] New: [no_unique_address] Member not stored in previous member's padding

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 9 16:02:37 PDT 2021


            Bug ID: 51424
           Summary: [no_unique_address] Member not stored in previous
                    member's padding
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++2a
          Assignee: unassignedclangbugs at nondot.org
          Reporter: z.zoelec2 at gmail.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

It seems like a missed optimization not to store members in a previous member's
padding when the previous member is marked as `[[no_unique_address]]`.

GCC implements this. The difference in codegen can be seen here:

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/20210809/6197dd61/attachment.html>

More information about the llvm-bugs mailing list