[all-commits] [llvm/llvm-project] 7e2cf2: [ADT] Clarify llvm::bit_cast implementation comment

Joseph Loser via All-commits all-commits at lists.llvm.org
Sun Aug 21 17:14:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7e2cf2679ebc177c3264c171d8d7a91442161f5c
      https://github.com/llvm/llvm-project/commit/7e2cf2679ebc177c3264c171d8d7a91442161f5c
  Author: Joe Loser <joeloser at fastmail.com>
  Date:   2022-08-21 (Sun, 21 Aug 2022)

  Changed paths:
    M llvm/include/llvm/ADT/bit.h

  Log Message:
  -----------
  [ADT] Clarify llvm::bit_cast implementation comment

When reviewing https://reviews.llvm.org/D132330, I noticed a few pre-existing
comments regarding the implementation of `llvm::bit_cast`. One comment is a bit
misleading since `std::bit_cast` is a C++20 standard library thing, not a
C++17 one (otherwise we could use it directly). Clarify that in the comment.

Differential Revision: https://reviews.llvm.org/D132332




More information about the All-commits mailing list