From 095d60850e7e6a5358815f9ca21725cdeca9191a Mon Sep 17 00:00:00 2001 From: Yan Xu Date: Wed, 12 Jun 2024 19:53:16 -0400 Subject: [PATCH] fix merge deprecated Signed-off-by: Yan Xu --- src/Dialect/ONNX/Transforms/Decompose.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dialect/ONNX/Transforms/Decompose.cpp b/src/Dialect/ONNX/Transforms/Decompose.cpp index 2bf3dc95f1..e2ffd745e3 100644 --- a/src/Dialect/ONNX/Transforms/Decompose.cpp +++ b/src/Dialect/ONNX/Transforms/Decompose.cpp @@ -946,7 +946,7 @@ class ReplaceCastLikeByCastPattern : public OpRewritePattern { // Replace Value res; - if (output.getType().cast().hasRank()) + if (mlir::cast(output.getType()).hasRank()) res = onnx_mlir::OnnxBuilder(rewriter, loc) .cast(input, saturate, TypeAttr::get(targetType)); else {