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

Mikhail Ramalho via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Apr 20 05:18:00 PDT 2023


mikhail.ramalho added a comment.

In D148739#4282973 <https://reviews.llvm.org/D148739#4282973>, @sivachandra wrote:

> While this change is OK, we do want the `UInt` class to be trivially copyable. Do you know why it is not trivially copyable even when defaulted?

We also needed to default operator=, I'll update the patch with these changes.


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