forked from OSchip/llvm-project
[mlir][linalg][nfc] Fix signed/unsigned comparison warning in header
Differential Revision: https://reviews.llvm.org/D102968
This commit is contained in:
parent
9a9421a461
commit
0dd36f81b9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue