[all-commits] [llvm/llvm-project] ea7953: [PowerPC] Add parentheses to silence gcc warning

mikaelholmen via All-commits all-commits at lists.llvm.org
Mon Sep 7 23:41:32 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ea795304ec073a63c3c5b4fd0c5579e667201dad
      https://github.com/llvm/llvm-project/commit/ea795304ec073a63c3c5b4fd0c5579e667201dad
  Author: Mikael Holmen <mikael.holmen at ericsson.com>
  Date:   2020-09-08 (Tue, 08 Sep 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCInstrInfo.cpp

  Log Message:
  -----------
  [PowerPC] Add parentheses to silence gcc warning

Without gcc 7.4 warns with

../lib/Target/PowerPC/PPCInstrInfo.cpp:2284:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          BaseOp1.isFI() &&
          ~~~~~~~~~~~~~~~^~
              "Only base registers and frame indices are supported.");
              ~




More information about the All-commits mailing list