[PATCH] D132330: [ADT] Simplify llvm::bit_cast (NFC)

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 22 12:08:29 PDT 2022


RKSimon added inline comments.


================
Comment at: llvm/include/llvm/ADT/bit.h:34
   std::memcpy(&to, &from, sizeof(To));
   return to;
 }
----------------
Could we use the __builtin_bit_cast if its available?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D132330



More information about the llvm-commits mailing list