[all-commits] [llvm/llvm-project] cb413f: [PowerPC] Fix gcc warning about unused variable [NFC]

mikaelholmen via All-commits all-commits at lists.llvm.org
Thu Dec 9 01:35:48 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb413f208a84940a3e456a18161e19c1dac38f43
      https://github.com/llvm/llvm-project/commit/cb413f208a84940a3e456a18161e19c1dac38f43
  Author: Mikael Holmen <mikael.holmen at ericsson.com>
  Date:   2021-12-09 (Thu, 09 Dec 2021)

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

  Log Message:
  -----------
  [PowerPC] Fix gcc warning about unused variable [NFC]

gcc warned about
../lib/Target/PowerPC/PPCTargetTransformInfo.cpp:1401:13: warning: unused variable 'VecTy' [-Wunused-variable]
 1401 |   if (auto *VecTy = dyn_cast<FixedVectorType>(DataType)) {
      |             ^~~~~


  Commit: d0f55a0d8052229882644e07c78064bca99e06c0
      https://github.com/llvm/llvm-project/commit/d0f55a0d8052229882644e07c78064bca99e06c0
  Author: Mikael Holmen <mikael.holmen at ericsson.com>
  Date:   2021-12-09 (Thu, 09 Dec 2021)

  Changed paths:
    M llvm/lib/Target/ARM/ARMFrameLowering.cpp

  Log Message:
  -----------
  [ARM] Fix gcc warning about mix of enumeral and non-enumeral types

gcc warned with
../lib/Target/ARM/ARMFrameLowering.cpp:797:31: warning: enumeral and non-enumeral type in conditional expression [-Wextra]
  797 |               Reg == ARM::R12 ? ARM::RA_AUTH_CODE : Reg, true);
      |               ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~


Compare: https://github.com/llvm/llvm-project/compare/5a33e412815b...d0f55a0d8052


More information about the All-commits mailing list