diff --git a/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td b/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td --- a/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td +++ b/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td @@ -823,7 +823,7 @@ /// The i-th variable operand passed. Value getVariableOperand(unsigned i) { - assert(0 <= i && i < 2 && "invalid index position for an operand"); + assert(i < 2 && "invalid index position for an operand"); return i == 0 ? x() : v(); } }]; @@ -871,7 +871,7 @@ /// The i-th variable operand passed. Value getVariableOperand(unsigned i) { - assert(0 <= i && i < 2 && "invalid index position for an operand"); + assert(i < 2 && "invalid index position for an operand"); return i == 0 ? address() : value(); } }];