[all-commits] [llvm/llvm-project] 7e77f1: [TTI] Fix -Wsign-compare in BasicTTIImpl.h (NFC)

Jie Fu (傅杰) via All-commits all-commits at lists.llvm.org
Fri Oct 6 05:09:56 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7e77f19232880b2ea79eddeda6a0a6c8bc9a1d8c
      https://github.com/llvm/llvm-project/commit/7e77f19232880b2ea79eddeda6a0a6c8bc9a1d8c
  Author: Jie Fu <jiefu at tencent.com>
  Date:   2023-10-06 (Fri, 06 Oct 2023)

  Changed paths:
    M llvm/include/llvm/CodeGen/BasicTTIImpl.h

  Log Message:
  -----------
  [TTI] Fix -Wsign-compare in BasicTTIImpl.h (NFC)

/llvm-project/llvm/include/llvm/CodeGen/BasicTTIImpl.h:948:33: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Werror,-Wsign-compare]
          (Index + Mask.size()) <= NumSrcElts) {
           ~~~~~~~~~~~~~~~~~~~  ^  ~~~~~~~~~~




More information about the All-commits mailing list