[PATCH] D139741: [clang][CodeGen] Use base subobject type layout for potentially-overlapping fields
Eli Friedman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 16 11:55:26 PST 2022
efriedma added a comment.
Does the following work with the updated patch?
class Empty {};
class UnionClass : Empty {
[[no_unique_address]] union X {
private:
Empty x;
alignas(2) char C;
} U;
char C;
};
UnionClass L;
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139741/new/
https://reviews.llvm.org/D139741
More information about the cfe-commits
mailing list