This is an archive of the discontinued LLVM Phabricator instance.

Define LLVM_IS_TRIVIALLY_COPYABLE
AbandonedPublic

Authored by rogfer01 on Jun 27 2018, 6:12 AM.

Details

Reviewers
None
Summary

Some objects have storage specifics which force them to be trivially copyable. Enforcing this requirement at compile time should avoid wasting time debugging du to accidentally breaking it.

As suggested in D48589 llvm::isPodLike almost does something like this. This change extracts the relevant logic so we can skip compiling it if the compiler does not support that trait (yet).

Diff Detail

Event Timeline

rogfer01 abandoned this revision.Dec 7 2018, 3:17 AM

Not needed for now.