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