[all-commits] [llvm/llvm-project] a021db: [mlir] Fix build error due to -Wsign-compare after...

Jie Fu via All-commits all-commits at lists.llvm.org
Thu Jan 5 19:36:27 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a021db346e2969b82b443aff6c73377ab9658439
      https://github.com/llvm/llvm-project/commit/a021db346e2969b82b443aff6c73377ab9658439
  Author: Jie Fu <jiefu at tencent.com>
  Date:   2023-01-05 (Thu, 05 Jan 2023)

  Changed paths:
    M mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp

  Log Message:
  -----------
  [mlir] Fix build error due to -Wsign-compare after revision D140871

This patch fixes build failure due to -Wsign-compare in sparse2SparseRewrite(...) after https://reviews.llvm.org/D140871.

```
llvm-project/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp:842:32: error: comparison of integers of different signs: 'uint64_t' (aka 'unsigned long') and 'int64_t' (aka 'long') [-Werror,-Wsign-compare]
        for (uint64_t i = 0; i < rank; i++) {
                             ~ ^ ~~~~
1 error generated.
```

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D141104




More information about the All-commits mailing list