[all-commits] [llvm/llvm-project] 5e2936: [NFC] Add parentheses in MathExtra.h

deadalnix via All-commits all-commits at lists.llvm.org
Sun Jul 24 15:24:48 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e29360743ca822f6934877cc972295c2da5a38b
      https://github.com/llvm/llvm-project/commit/5e29360743ca822f6934877cc972295c2da5a38b
  Author: Amaury Séchet <deadalnix at gmail.com>
  Date:   2022-07-24 (Sun, 24 Jul 2022)

  Changed paths:
    M llvm/include/llvm/Support/MathExtras.h

  Log Message:
  -----------
  [NFC] Add parentheses in MathExtra.h

The code used to cause a warning:
  llvm/include/llvm/Support/MathExtras.h:751:39: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses]
    751 |   assert(Align != 0 && (Align & Align - 1) == 0 &&
        |




More information about the All-commits mailing list