[PATCH] D63753: [Sema] Instead of rejecting C unions with non-trivial fields, detect attempts to destruct/initialize/copy them.
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 12 12:43:19 PDT 2019
ahatanak updated this revision to Diff 209565.
ahatanak marked an inline comment as done.
ahatanak added a comment.
Diagnose C union globals that are non-trivial to default-initialize. Add 3 bits to RecordDeclBitfields for default-initialize, destruct, and copy to fast-path checking.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63753/new/
https://reviews.llvm.org/D63753
Files:
include/clang/AST/Decl.h
include/clang/AST/DeclBase.h
include/clang/AST/Type.h
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/AST/Type.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaType.cpp
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTWriterDecl.cpp
test/CodeGenObjC/Inputs/strong_in_union.h
test/CodeGenObjC/strong-in-c-struct.m
test/PCH/non-trivial-c-union.m
test/SemaObjC/arc-decls.m
test/SemaObjC/non-trivial-c-union.m
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63753.209565.patch
Type: text/x-patch
Size: 51114 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190712/8cbe2101/attachment-0001.bin>
More information about the cfe-commits
mailing list