================
@@ -1217,6 +1217,9 @@ void CXXRecordDecl::addedMember(Decl *D) {
// those because they are always unnamed.
bool IsZeroSize = Field->isZeroSize(Context);
+ // P3074
+ const bool TrivialUnion = Context.getLangOpts().CPlusPlus26 && isUnion();
----------------
Sirraide wrote:
```suggestion
bool TrivialUnion = Context.getLangOpts().CPlusPlus26 && isUnion();
```
nit (we typically don’t use top-level const for local vars)
https://github.com/llvm/llvm-project/pull/146815
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits