[libcxx-commits] [PATCH] D58004: Bit-casting object representations (p0476r2)

Zoe Carver via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Feb 9 10:11:35 PST 2019


zoecarver added inline comments.


================
Comment at: include/bit:168
+    _To __dst;
+    std::memcpy(&__dst, &__src, sizeof(_To));
+    return __dst;
----------------
It would be great if this could use the llvm `BitCastInst` but I am not sure how to add support for this in the compiler. Maybe you know @mclow.lists?


Repository:
  rCXX libc++

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

https://reviews.llvm.org/D58004





More information about the libcxx-commits mailing list