[all-commits] [llvm/llvm-project] 6647f3: [CombinerHelper] Fix gcc warning [NFC]

mikaelholmen via All-commits all-commits at lists.llvm.org
Wed May 10 00:09:57 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6647f3cd01035ce35cb30a49ef79fed835ef5f6b
      https://github.com/llvm/llvm-project/commit/6647f3cd01035ce35cb30a49ef79fed835ef5f6b
  Author: Mikael Holmen <mikael.holmen at ericsson.com>
  Date:   2023-05-10 (Wed, 10 May 2023)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp

  Log Message:
  -----------
  [CombinerHelper] Fix gcc warning [NFC]

Without the fix gcc complains with
 ../lib/CodeGen/GlobalISel/CombinerHelper.cpp:1652:52: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  1652 |          SrcDef->getOpcode() == TargetOpcode::G_OR && "Unexpected op");
       |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~




More information about the All-commits mailing list