[all-commits] [llvm/llvm-project] cbd306: [APInt] Correct backwards static_assert condition....

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Aug 14 00:28:45 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cbd306806ad4b518e664f122838e45d709db0ef6
      https://github.com/llvm/llvm-project/commit/cbd306806ad4b518e664f122838e45d709db0ef6
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-08-14 (Wed, 14 Aug 2024)

  Changed paths:
    M llvm/lib/Support/APInt.cpp

  Log Message:
  -----------
  [APInt] Correct backwards static_assert condition. (#103641)

In order to guarantee that extracting 64 bits doesn't require more than
2 words, the word size would need to be 64 bits or more. If the word
size was smaller than 64, like 32, you may need to read 3 words to get
64 bits.



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