[PATCH] D158532: Anonymous unions should be transparent wrt `[[clang::trivial_abi]]`.

Ɓukasz Anforowicz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 22 11:00:08 PDT 2023


lukasza added a comment.

The delta from https://reviews.llvm.org/D155895 is in `clang/test/SemaCXX/attr-trivial-abi.cpp` where 1) a comment has been added above the non-trivial move constructor of the `Trivial` test helper and 2) test expectations have been tweaked to account for `_WIN64` and `__MINGW32__` (cargo-culting these conditions from the already-existing tests in the top part of this test file).

I have considered making Windows and non-Windows behaving in the same way, which would require making `Trivial` trivially-copyable (and consequently trivially-movable).  This wouldn't repro the original problem, so I abandoned this direction.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D158532/new/

https://reviews.llvm.org/D158532



More information about the cfe-commits mailing list