[all-commits] [llvm/llvm-project] 59e1fb: [PowerPC] Fix gcc warning [NFC]

mikaelholmen via All-commits all-commits at lists.llvm.org
Tue Aug 25 04:02:29 PDT 2020


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

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

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

Without the fix gcc 7.4 warns with

../lib/Target/PowerPC/PPCAsmPrinter.cpp: In member function 'void {anonymous}::PPCAsmPrinter::EmitTlsCall(const llvm::MachineInstr*, llvm::MCSymbolRefExpr::VariantKind)':
../lib/Target/PowerPC/PPCAsmPrinter.cpp:525:53: warning: enumeral and non-enumeral type in conditional expression [-Wextra]
                  MCInstBuilder(Subtarget->isPPC64() ? Opcode : PPC::BL_TLS)
                                ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~


  Commit: 1c39ffecd84a5eba54f5fabb433b0192d1dbd3b4
      https://github.com/llvm/llvm-project/commit/1c39ffecd84a5eba54f5fabb433b0192d1dbd3b4
  Author: Mikael Holmen <mikael.holmen at ericsson.com>
  Date:   2020-08-25 (Tue, 25 Aug 2020)

  Changed paths:
    M libunwind/src/AddressSpace.hpp

  Log Message:
  -----------
  [libunwind] Fix warning when building without frameheader cache

Without the fix the compiler warns with

/data/repo/master/libunwind/src/AddressSpace.hpp:436:44: warning: unused parameter 'pinfo_size' [-Wunused-parameter]
                                    size_t pinfo_size, void *data) {
                                           ^
1 warning generated.


Compare: https://github.com/llvm/llvm-project/compare/d4225b8f17d8...1c39ffecd84a


More information about the All-commits mailing list