Skip to content

Commit d617725

Browse files
address comments
1 parent 5b9a4e1 commit d617725

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/lib/Dialect/SCF/IR/SCF.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ ParseResult ForOp::parse(OpAsmParser &parser, OperationState &result) {
502502
// Set block argument types, so that they are known when parsing the region.
503503
regionArgs.front().type = type;
504504
for (auto [iterArg, type] :
505-
llvm::zip(llvm::drop_begin(regionArgs), result.types))
505+
llvm::zip_equal(llvm::drop_begin(regionArgs), result.types))
506506
iterArg.type = type;
507507

508508
// Parse the body region.
@@ -518,8 +518,8 @@ ParseResult ForOp::parse(OpAsmParser &parser, OperationState &result) {
518518
parser.resolveOperand(step, type, result.operands))
519519
return failure();
520520
if (hasIterArgs) {
521-
for (auto argOperandType :
522-
llvm::zip(llvm::drop_begin(regionArgs), operands, result.types)) {
521+
for (auto argOperandType : llvm::zip_equal(llvm::drop_begin(regionArgs),
522+
operands, result.types)) {
523523
Type type = std::get<2>(argOperandType);
524524
std::get<0>(argOperandType).type = type;
525525
if (parser.resolveOperand(std::get<1>(argOperandType), type,

0 commit comments

Comments
 (0)