[mlir] Fix two build warnings (NFC)
authorJie Fu <jiefu@tencent.com>
Wed, 15 Mar 2023 04:07:25 +0000 (12:07 +0800)
committerJie Fu <jiefu@tencent.com>
Wed, 15 Mar 2023 04:07:25 +0000 (12:07 +0800)
commit7707ed9727742a78931226def32610fac85b72a2
tree79b44a8432d3ae8e4660d8608ac8dd26270145ab
parentd3fa067e699cf3ba4bc89f7d51d26f0faed7fa86
[mlir] Fix two build warnings (NFC)

/data/llvm-project/mlir/lib/Dialect/Tensor/Utils/Utils.cpp:62:11: error: comparison of integers of different signs: 'int64_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
  if (dim >= shape.size())
      ~~~ ^  ~~~~~~~~~~~~
1 error generated.

/data/llvm-project/mlir/lib/Dialect/Tensor/IR/TensorTilingInterfaceImpl.cpp:484:8: error: unused variable 'appendIndex' [-Werror,-Wunused-variable]
  auto appendIndex = [&](Value val, SmallVector<Value> &dynIndices,
       ^
1 error generated.
mlir/lib/Dialect/Tensor/IR/TensorTilingInterfaceImpl.cpp
mlir/lib/Dialect/Tensor/Utils/Utils.cpp