[PATCH] D71619: [CLANG] Alignment specifier not applied to anonymous structure or union

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 18 13:13:04 PST 2019


rsmith added inline comments.


================
Comment at: clang/lib/Sema/SemaDecl.cpp:5037
 
     Anon = VarDecl::Create(Context, Owner, DS.getBeginLoc(),
                            Record->getLocation(), /*IdentifierInfo=*/nullptr,
----------------
Should we apply the attributes to the variable in this case, or (if they're always syntactically invalid) assert that there aren't any?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D71619





More information about the cfe-commits mailing list