[libc-commits] [PATCH] D148739: [libc] Use __builtin_bit_cast only when src and dest types are trivially copyable

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Apr 20 10:39:44 PDT 2023


sivachandra added inline comments.


================
Comment at: libc/src/__support/CPP/type_traits.h:29
 
+template <class _Tp>
+struct is_trivially_copyable
----------------
This is a libc internal file so we don't need the `_` prefixes. Just use `T` here and below, and also just `Args`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D148739/new/

https://reviews.llvm.org/D148739



More information about the libc-commits mailing list