Skip to content

Commit 81676b5

Browse files
raikonenfnukuhar
andauthored
Update mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
Co-authored-by: Jakub Kuderski <[email protected]>
1 parent b5cb807 commit 81676b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2285,8 +2285,8 @@ LogicalResult IndexOp::verify() {
22852285

22862286
OpFoldResult IndexOp::fold(FoldAdaptor adaptor) {
22872287
auto linalgOp = dyn_cast_or_null<LinalgOp>((*this)->getParentOp());
2288-
// Early exit if linalg.index does not have a proper parent yet
2289-
// at this point. (e.g createOrFold in a genericOp::build)
2288+
// Bail out if `linalg.index` does not have a proper parent yet at this
2289+
// point, e.g., when calling `createOrFold` during IR construction in `genericOp::build`.
22902290
if (!linalgOp)
22912291
return OpFoldResult{};
22922292

0 commit comments

Comments
 (0)