Skip to content

Commit 820e40b

Browse files
committed
fix build error
1 parent 790e974 commit 820e40b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mlir/lib/Dialect/Linalg/Transforms/DataLayoutPropagation.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ getPackingInfoFromOperand(OpOperand *opOperand, linalg::GenericOp genericOp,
6464
static_assert(llvm::is_one_of<OpTy, linalg::PackOp, linalg::UnPackOp>::value,
6565
"applies to only pack or unpack operations");
6666
// TODO(issues/129004): Support MemRef PackOp. Temporarily return failure.
67-
if (isa<linalg::LinalgOp>(packOrUnPackOp)) {
68-
if (!packOrUnPackOp.hasPureTensorSemantics()) {
67+
if (auto linalgOp =
68+
dyn_cast<linalg::LinalgOp>(packOrUnPackOp.getOperation())) {
69+
if (!linalgOp.hasPureTensorSemantics()) {
6970
return failure();
7071
}
7172
}

0 commit comments

Comments
 (0)