diff --git a/llvm/include/llvm/ADT/bit.h b/llvm/include/llvm/ADT/bit.h --- a/llvm/include/llvm/ADT/bit.h +++ b/llvm/include/llvm/ADT/bit.h @@ -20,9 +20,8 @@ namespace llvm { -// This implementation of bit_cast is different from the C++17 one in two ways: -// - It isn't constexpr because that requires compiler support. -// - It requires trivially-constructible To, to avoid UB in the implementation. +// This implementation of bit_cast is different from the C++20 one. +// This version isn't constexpr because that requires compiler support. template < typename To, typename From, typename = std::enable_if_t