[all-commits] [llvm/llvm-project] 0d51c8: [X86] Fix -Wsign-compare in X86MCInstLower.cpp (NFC)

Jie Fu (傅杰) via All-commits all-commits at lists.llvm.org
Fri Jan 19 06:39:08 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d51c8704c647e3eec833b1435d268d8bb693b4e
      https://github.com/llvm/llvm-project/commit/0d51c8704c647e3eec833b1435d268d8bb693b4e
  Author: Jie Fu <jiefu at tencent.com>
  Date:   2024-01-19 (Fri, 19 Jan 2024)

  Changed paths:
    M llvm/lib/Target/X86/X86MCInstLower.cpp

  Log Message:
  -----------
  [X86] Fix -Wsign-compare in X86MCInstLower.cpp (NFC)

llvm-project/llvm/lib/Target/X86/X86MCInstLower.cpp:1867:20:
 error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]
      if (SclWidth == C->getType()->getScalarSizeInBits()) {
          ~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.




More information about the All-commits mailing list