Skip to content

Commit

Permalink
Use free function instead of method for dyn_cast_or_null (openxla#2280)
Browse files Browse the repository at this point in the history
The method variant is deprecated.
  • Loading branch information
mlevesquedion authored May 2, 2024
1 parent 41e7122 commit c0132de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ struct TransposeOpToTransposeConverter final
// TODO(#2216) Cleanup Attribute -> DenseArrayAttr
rewriter.replaceOpWithNewOp<linalg::TransposeOp>(
op, adaptor.getOperand(), emptyTensor,
op.getPermutationAttr().dyn_cast_or_null<DenseI64ArrayAttr>(),
dyn_cast_or_null<DenseI64ArrayAttr>(op.getPermutationAttr()),
linalg::getPrunedAttributeList(op));
return success();
}
Expand Down

0 comments on commit c0132de

Please sign in to comment.