[PATCH] D55659: [Sema][ObjC] Disallow non-trivial C struct fields in unions

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 5 18:50:41 PST 2019


ahatanak updated this revision to Diff 185466.
ahatanak added a comment.

Make sure that volatile trivial fields in a struct don't cause Sema to emit a diagnostic. Simplify the code in `Sema::ActOnFields` .


Repository:
  rC Clang

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

https://reviews.llvm.org/D55659

Files:
  include/clang/AST/Type.h
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/AST/Type.cpp
  lib/Sema/SemaDecl.cpp
  test/SemaObjC/arc-decls.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55659.185466.patch
Type: text/x-patch
Size: 5166 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190206/9bad57d5/attachment.bin>


More information about the cfe-commits mailing list