[all-commits] [llvm/llvm-project] 0e36aa: [ADT, Support] Use std::bool_constant (NFC) (#158503)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Sun Sep 14 14:04:34 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e36aa1640a5c0d00138c61de0f99f785cff1e2a
      https://github.com/llvm/llvm-project/commit/0e36aa1640a5c0d00138c61de0f99f785cff1e2a
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-09-14 (Sun, 14 Sep 2025)

  Changed paths:
    M llvm/include/llvm/ADT/Hashing.h
    M llvm/include/llvm/ADT/ilist_node_options.h
    M llvm/include/llvm/Support/CFGDiff.h
    M llvm/include/llvm/Support/FormatProviders.h
    M llvm/include/llvm/Support/FormatVariadicDetails.h
    M llvm/include/llvm/Support/HashBuilder.h
    M llvm/include/llvm/Support/YAMLTraits.h

  Log Message:
  -----------
  [ADT, Support] Use std::bool_constant (NFC) (#158503)

This patch replaces, std::integral_constant<bool, ...> with
std::bool_constant for brevity.  Note that std::bool_constant was
introduced as part of C++17.

There are cases where we could strip away std::bool_constant
altogether:

  std::bool_constant<std::is_same<T, U>>

but I'm not doing that in this patch to avoid doing multiple things in
one patch.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list