diff --git a/lib/Conversion/TorchToStablehlo/Basic.cpp b/lib/Conversion/TorchToStablehlo/Basic.cpp index 4f521fb9e..3d01734f9 100644 --- a/lib/Conversion/TorchToStablehlo/Basic.cpp +++ b/lib/Conversion/TorchToStablehlo/Basic.cpp @@ -941,7 +941,7 @@ public: matchAndRewrite(AtenOpT op, OpAdaptor adaptor, ConversionPatternRewriter &rewriter) const override { auto outType = cast( - OpConversionPattern::getTypeConverter()->convertType( + OpConversionPattern::getTypeConverter()->convertType( op.getType())); Type outElemTy = outType.getElementType();