[PATCH] D114732: [clang] Mark `trivial_abi` types as "trivially relocatable".
Devin Jeanpierre via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 18 16:22:10 PST 2022
devin.jeanpierre updated this revision to Diff 401035.
devin.jeanpierre added a comment.
Update to pass on Windows (untested right now).
On Windows, unlike Itanium ABI, the only special member functions used are the copy constructor and the destructor. If the copy constructor is deleted, then the type is not considered trivial for calls, even if it has a move constructor.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114732/new/
https://reviews.llvm.org/D114732
Files:
clang/docs/LanguageExtensions.rst
clang/include/clang/AST/Type.h
clang/include/clang/Basic/AttrDocs.td
clang/include/clang/Basic/TokenKinds.def
clang/lib/AST/Type.cpp
clang/lib/Sema/SemaExprCXX.cpp
clang/test/SemaCXX/attr-trivial-abi.cpp
clang/test/SemaCXX/type-traits.cpp
clang/test/SemaObjCXX/arc-type-traits.mm
clang/test/SemaObjCXX/objc-weak-type-traits.mm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114732.401035.patch
Type: text/x-patch
Size: 15499 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220119/08f13bb8/attachment-0001.bin>
More information about the cfe-commits
mailing list