diff --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp index 26ad4f97b0d03..1e4eecee21e5d 100644 --- a/clang/lib/Sema/SemaType.cpp +++ b/clang/lib/Sema/SemaType.cpp @@ -8340,7 +8340,7 @@ static void HandleRISCVRVVVectorBitsTypeAttr(QualType &CurType, unsigned VecSize = static_cast(RVVVectorSizeInBits.getZExtValue()); ASTContext::BuiltinVectorTypeInfo Info = - S.Context.getBuiltinVectorTypeInfo(CurType->getAs()); + S.Context.getBuiltinVectorTypeInfo(CurType->castAs()); unsigned EltSize = S.Context.getTypeSize(Info.ElementType); unsigned MinElts = Info.EC.getKnownMinValue();