We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbcdb33 commit 12ba5a3Copy full SHA for 12ba5a3
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
@@ -2289,7 +2289,7 @@ OpFoldResult IndexOp::fold(FoldAdaptor adaptor) {
2289
// Index of unit dims is always 0.
2290
SmallVector<int64_t, 4> loopBounds = linalgOp.getStaticLoopRanges();
2291
uint64_t dim = getDim();
2292
- assert(dim < loopBounds.size());
+ assert(dim < loopBounds.size() && "Dim is out of bounds");
2293
if (loopBounds[dim] == 1)
2294
return IntegerAttr::get(IndexType::get(getContext()), 0);
2295
0 commit comments