[Mlir-commits] [mlir] 0dd36f8 - [mlir][linalg][nfc] Fix signed/unsigned comparison warning in header
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sat May 22 07:24:26 PDT 2021
Author: Butygin
Date: 2021-05-22T17:18:01+03:00
New Revision: 0dd36f81b9f894497773caed509603eb0f090cae
URL: https://github.com/llvm/llvm-project/commit/0dd36f81b9f894497773caed509603eb0f090cae
DIFF: https://github.com/llvm/llvm-project/commit/0dd36f81b9f894497773caed509603eb0f090cae.diff
LOG: [mlir][linalg][nfc] Fix signed/unsigned comparison warning in header
Differential Revision: https://reviews.llvm.org/D102968
Added:
Modified:
mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td b/mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td
index 334cecb3eb477..c78624b70b7b5 100644
--- a/mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td
+++ b/mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td
@@ -701,9 +701,9 @@ def Linalg_TiledLoopOp : Linalg_Op<"tiled_loop", [
int numOutputs = getNumOutputs();
int numControlOperands = getNumControlOperands();
- auto operandIndex = operand.getOperandNumber();
+ int operandIndex = operand.getOperandNumber();
assert(operandIndex >= numControlOperands &&
- operandIndex < getNumOperands() &&
+ operandIndex < static_cast<int>(getNumOperands()) &&
"Can erase only `input` or `output` operand");
if (operandIndex >= numControlOperands + numInputs)
More information about the Mlir-commits
mailing list