[PATCH] D51888: [ADT] bit_cast: check for is_trivially_copyable more portably

Louis Dionne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 10 13:50:53 PDT 2018


ldionne added a comment.

I think that works because `memcpy` this way is valid IFF `To` and `From` are trivially copyable. LGTM.


Repository:
  rL LLVM

https://reviews.llvm.org/D51888





More information about the llvm-commits mailing list