File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
mlir/lib/Dialect/Affine/IR Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1902,13 +1902,14 @@ LogicalResult AffineForOp::verifyRegions() {
19021902 if (failed (verifyDimAndSymbolIdentifiers (*this , getUpperBoundOperands (),
19031903 getUpperBoundMap ().getNumDims ())))
19041904 return failure ();
1905-
1905+ // Verify that the bound maps produce at least one result.
1906+ // / Lower bound.
19061907 if (getLowerBoundMap ().getNumResults () < 1 )
19071908 return emitOpError (" expected lower bound map to have at least one result" );
1908-
1909+ // / Upper bound.
19091910 if (getUpperBoundMap ().getNumResults () < 1 )
19101911 return emitOpError (" expected upper bound map to have at least one result" );
1911-
1912+
19121913 unsigned opNumResults = getNumResults ();
19131914 if (opNumResults == 0 )
19141915 return success ();
You can’t perform that action at this time.
0 commit comments