summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Decl.cpp
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2019-07-26 00:02:17 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2019-07-26 00:02:17 +0000
commit6f6156b9fc81b64b61c53360735c2771c381187f (patch)
treed90fd21e7f39b321b58c58eb15523d6eb2895e6d /clang/lib/AST/Decl.cpp
parentc07fe307b48a98a149578948b167802f7b2825cf (diff)
downloadbcm5719-llvm-6f6156b9fc81b64b61c53360735c2771c381187f.tar.gz
bcm5719-llvm-6f6156b9fc81b64b61c53360735c2771c381187f.zip
Revert "[Sema] Diagnose default-initialization, destruction, and copying of"
This reverts commit r365985. Prior to r365985, clang used to mark C union fields that have non-trivial ObjC ownership qualifiers as unavailable if the union was declared in a system header. r365985 stopped doing so, which caused the swift compiler to crash when it tried to import a non-trivial union. I have a patch that fixes the crash (https://reviews.llvm.org/D65256), but I'm temporarily reverting the original patch until we can decide on whether it's taking the right approach. llvm-svn: 367076
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r--clang/lib/AST/Decl.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index 21cf9da18a8..21dd5425834 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -4252,9 +4252,6 @@ RecordDecl::RecordDecl(Kind DK, TagKind TK, const ASTContext &C,
setNonTrivialToPrimitiveDefaultInitialize(false);
setNonTrivialToPrimitiveCopy(false);
setNonTrivialToPrimitiveDestroy(false);
- setHasNonTrivialToPrimitiveDefaultInitializeCUnion(false);
- setHasNonTrivialToPrimitiveDestructCUnion(false);
- setHasNonTrivialToPrimitiveCopyCUnion(false);
setParamDestroyedInCallee(false);
setArgPassingRestrictions(APK_CanPassInRegs);
}
OpenPOWER on IntegriCloud