File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments