isPodLike: more precise
authorJF Bastien <jfb@google.com>
Sun, 27 Mar 2016 20:32:21 +0000 (20:32 +0000)
committerJF Bastien <jfb@google.com>
Sun, 27 Mar 2016 20:32:21 +0000 (20:32 +0000)
commit507d696cac837a37c8a1ca52a6daf91a53c7402e
tree05364decfed0486bdd55cd8bbddcfbe04e9fc287
parentb22a1d186ff5d6bb649e302bc28863e97c0db0bf
isPodLike: more precise

I tried to use isPodLike in:
  http://reviews.llvm.org/D18483

That failed because !is_class is too strict on platforms which don't yet
have is_trivially_copyable. This update tries to make isPodLike smarter
for platforms which don't have is_trivially_copyable, and AFAICT it
Should Just Work on all of them. I'll revert if the bots disagree with
me.

I'll also rename isPodLike to isTriviallyCopyable if this all works out,
since that's what the standard calls it now and one day we'll be rid of
isPodLike.

llvm-svn: 264541
llvm/include/llvm/Support/type_traits.h