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.
cast
dyn_cast
1 parent 9d4ddf3 commit f3ebf22Copy full SHA for f3ebf22
mlir/lib/Dialect/Affine/IR/AffineOps.cpp
@@ -4612,12 +4612,12 @@ struct DropDelinearizeOfSingleLoop
4612
return failure();
4613
4614
// Check that the `linear_index` is an induction variable.
4615
- auto inductionVar = cast<BlockArgument>(delinearizeOp.getLinearIndex());
+ auto inductionVar = dyn_cast<BlockArgument>(delinearizeOp.getLinearIndex());
4616
if (!inductionVar)
4617
4618
4619
// Check that the parent is a `LoopLikeOpInterface`.
4620
- auto loopLikeOp = cast<LoopLikeOpInterface>(
+ auto loopLikeOp = dyn_cast<LoopLikeOpInterface>(
4621
inductionVar.getParentRegion()->getParentOp());
4622
if (!loopLikeOp)
4623
0 commit comments