[MLIR] Add a comment to requiredOperandCount arg in LoopOps.cpp.

Differential Revision: https://reviews.llvm.org/D75578
This commit is contained in:
Alexander Belyaev 2020-03-04 00:45:45 +01:00
parent b1324e74da
commit ffcb492327

View File

@ -413,7 +413,8 @@ static ParseResult parseParallelOp(OpAsmParser &parser,
// Parse step value.
SmallVector<OpAsmParser::OperandType, 4> initVals;
if (succeeded(parser.parseOptionalKeyword("init"))) {
if (parser.parseOperandList(initVals, -1, OpAsmParser::Delimiter::Paren))
if (parser.parseOperandList(initVals, /*requiredOperandCount=*/-1,
OpAsmParser::Delimiter::Paren))
return failure();
}