[all-commits] [llvm/llvm-project] 6db244: Add parentheses to clarify operator ordering in as...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Wed Sep 17 10:47:05 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6db244a58626e885ba010b3d6813191485e18e90
      https://github.com/llvm/llvm-project/commit/6db244a58626e885ba010b3d6813191485e18e90
  Author: Martin Storsjö <martin at martin.st>
  Date:   2025-09-17 (Wed, 17 Sep 2025)

  Changed paths:
    M clang/lib/CodeGen/CGHLSLRuntime.cpp
    M llvm/tools/llvm-lipo/llvm-lipo.cpp

  Log Message:
  -----------
  Add parentheses to clarify operator ordering in asserts. NFC. (#159333)

This avoids the following kind of warning with GCC:

    ../tools/llvm-lipo/llvm-lipo.cpp: In function ‘void printInfo(llvm::LLVMContext&, llvm::ArrayRef<llvm::object::OwningBinary<llvm::object::Binary> >)’:
    ../tools/llvm-lipo/llvm-lipo.cpp:464:34: warning: suggest parentheses around ‘& ’ within ‘||’ [-Wparentheses]
      464 |              Binary->isArchive() && "expected MachO binary");
          |              ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~



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