This is an archive of the discontinued LLVM Phabricator instance.

[ObjC] Enable using C++ triviality type traits for non-trivial C structs
ClosedPublic

Authored by ahatanak on Mar 26 2018, 4:28 PM.

Details

Summary

r326307 and r327870 made changes that allowed C structs to have strong and weak fields in ARC and be non-trivial. This patch make changes that allow using the following type traits for non-trivial C structs:

has_trivial_assign
has_trivial_move_assign
has_trivial_copy
has_trivial_move_constructor
has_trivial_constructor
has_trivial_destructor

Diff Detail

Repository
rL LLVM

Event Timeline

ahatanak created this revision.Mar 26 2018, 4:28 PM
rjmccall accepted this revision.Mar 26 2018, 8:34 PM

LGTM.

This revision is now accepted and ready to land.Mar 26 2018, 8:34 PM
This revision was automatically updated to reflect the committed changes.
This revision was automatically updated to reflect the committed changes.