Skip to content

Commit 8b583ea

Browse files
authored
[circle-mlir/dialect] Fix deprecated warnings for td file (#15582)
This will fix deprecated warnings from generated codes from td file, that was missed in previous change. ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>
1 parent a9fd10b commit 8b583ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

circle-mlir/circle-mlir/lib/dialect/mlir/CircleOps.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1920,7 +1920,7 @@ def CIR_ShapeOp: CIR_Op<"shape", [
19201920
let results = (outs CIR_TensorOf<[I32, I64]>:$output);
19211921

19221922
DerivedTypeAttr out_type = DerivedTypeAttr<[{
1923-
return getResult().getType().cast<TensorType>().getElementType();
1923+
return mlir::cast<TensorType>(getResult().getType()).getElementType();
19241924
}]>;
19251925

19261926
let hasOptions = 1;

0 commit comments

Comments
 (0)