[all-commits] [llvm/llvm-project] d7ae43: [NFC][X86] Fix Werror=extra error due to enum (#11...

Jinsong Ji via All-commits all-commits at lists.llvm.org
Fri Oct 18 06:00:54 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d7ae43e41196b59a519aef5c80f5236172a0ede3
      https://github.com/llvm/llvm-project/commit/d7ae43e41196b59a519aef5c80f5236172a0ede3
  Author: Jinsong Ji <jinsong.ji at intel.com>
  Date:   2024-10-18 (Fri, 18 Oct 2024)

  Changed paths:
    M llvm/lib/Target/X86/X86FastISel.cpp
    M llvm/lib/Target/X86/X86ISelLowering.cpp

  Log Message:
  -----------
  [NFC][X86] Fix Werror=extra error due to enum (#112812)

This is one of the many PRs to fix errors with LLVM_ENABLE_WERROR=on.
Built by GCC 11.

Fix warnings:
llvm-project/llvm/lib/Target/X86/X86FastISel.cpp: In member function
‘virtual bool
{anonymous}::X86FastISel::fastLowerCall(llvm::FastISel::CallLoweringInfo&)’:
llvm-project/llvm/lib/Target/X86/X86FastISel.cpp:3547: error: enumerated
and non-enumerated type in conditional expression [-Werror=extra]
 3547 |       MIB.addReg(Is64Bit ? X86::RIP : 0).addImm(1).addReg(0);



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