And some code cleanup
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
FWIW, I would not mix NFC code reformatting with an unrelated change (like marking the allocator member with [[no_unique_address]]). I'd prefer to just make the two-line change in this PR, and then an NFC reformat PR as a follow-up.
Comment Actions
Unfortunately, we can't make this change because it breaks the ABI. We can't modify the layout of __alloc_func because existing programs could have inlined assumptions about its layout.
The layout changes notably for empty classes that are final -- those won't be elided with __compressed_pair, but they will with [[no_unique_address]].
libcxx/include/__functional/function.h | ||
---|---|---|
137 | Does Clang really support this in earlier standards? |
Does Clang really support this in earlier standards?