[PATCH] D132332: [ADT] Clarify llvm::bit_cast implementation comment

Joe Loser via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 21 17:14:45 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7e2cf2679ebc: [ADT] Clarify llvm::bit_cast implementation comment (authored by jloser).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D132332

Files:
  llvm/include/llvm/ADT/bit.h


Index: llvm/include/llvm/ADT/bit.h
===================================================================
--- llvm/include/llvm/ADT/bit.h
+++ llvm/include/llvm/ADT/bit.h
@@ -19,7 +19,7 @@
 
 namespace llvm {
 
-// This implementation of bit_cast is different from the C++17 one in two ways:
+// This implementation of bit_cast is different from the C++20 one in two ways:
 //  - It isn't constexpr because that requires compiler support.
 //  - It requires trivially-constructible To, to avoid UB in the implementation.
 template <


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132332.454341.patch
Type: text/x-patch
Size: 529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220822/12357a88/attachment.bin>


More information about the llvm-commits mailing list