[all-commits] [llvm/llvm-project] 5b0775: [Transforms] Silence a warning in SROA.cpp (NFC)

Jie Fu (傅杰) via All-commits all-commits at lists.llvm.org
Thu Dec 12 02:45:39 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b077506de26b1dfce1926895548b86f2106bed9
      https://github.com/llvm/llvm-project/commit/5b077506de26b1dfce1926895548b86f2106bed9
  Author: Jie Fu <jiefu at tencent.com>
  Date:   2024-12-12 (Thu, 12 Dec 2024)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SROA.cpp

  Log Message:
  -----------
  [Transforms] Silence a warning in SROA.cpp (NFC)

/llvm-project/llvm/lib/Transforms/Scalar/SROA.cpp:5526:48:
 error: '&&' within '||' [-Werror,-Wlogical-op-parentheses]
          if (!SI->isSimple() || PartitionType && UserTy != PartitionType)
                              ~~ ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/llvm-project/llvm/lib/Transforms/Scalar/SROA.cpp:5526:48:
 note: place parentheses around the '&&' expression to silence this warning
          if (!SI->isSimple() || PartitionType && UserTy != PartitionType)
                                               ^
                                 (                                       )
1 error generated.



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