summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/ComposeAffineMaps.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/Transforms/ComposeAffineMaps.cpp')
-rw-r--r--mlir/lib/Transforms/ComposeAffineMaps.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/ComposeAffineMaps.cpp b/mlir/lib/Transforms/ComposeAffineMaps.cpp
index cce5df98348..eb00489c8e6 100644
--- a/mlir/lib/Transforms/ComposeAffineMaps.cpp
+++ b/mlir/lib/Transforms/ComposeAffineMaps.cpp
@@ -70,7 +70,7 @@ void ComposeAffineMaps::walk(StmtListType::iterator Start,
}
void ComposeAffineMaps::visitOperationStmt(OperationStmt *opStmt) {
- if (auto affineApplyOp = opStmt->getAs<AffineApplyOp>()) {
+ if (auto affineApplyOp = opStmt->dyn_cast<AffineApplyOp>()) {
forwardSubstitute(affineApplyOp);
bool allUsesEmpty = true;
for (auto *result : affineApplyOp->getOperation()->getResults()) {
OpenPOWER on IntegriCloud