This revision was automatically updated to reflect the committed changes. Closed by commit rG071d4ab377d3: [NFC][CLANG] Fix nullptr dereference issue in HandleRISCVRVVVectorBitsTypeAttr() (authored by Manna).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D151769/new/ https://reviews.llvm.org/D151769 Files: clang/lib/Sema/SemaType.cpp Index: clang/lib/Sema/SemaType.cpp =================================================================== --- clang/lib/Sema/SemaType.cpp +++ clang/lib/Sema/SemaType.cpp @@ -8340,7 +8340,7 @@ unsigned VecSize = static_cast<unsigned>(RVVVectorSizeInBits.getZExtValue()); ASTContext::BuiltinVectorTypeInfo Info = - S.Context.getBuiltinVectorTypeInfo(CurType->getAs<BuiltinType>()); + S.Context.getBuiltinVectorTypeInfo(CurType->castAs<BuiltinType>()); unsigned EltSize = S.Context.getTypeSize(Info.ElementType); unsigned MinElts = Info.EC.getKnownMinValue();
Index: clang/lib/Sema/SemaType.cpp =================================================================== --- clang/lib/Sema/SemaType.cpp +++ clang/lib/Sema/SemaType.cpp @@ -8340,7 +8340,7 @@ unsigned VecSize = static_cast<unsigned>(RVVVectorSizeInBits.getZExtValue()); ASTContext::BuiltinVectorTypeInfo Info = - S.Context.getBuiltinVectorTypeInfo(CurType->getAs<BuiltinType>()); + S.Context.getBuiltinVectorTypeInfo(CurType->castAs<BuiltinType>()); unsigned EltSize = S.Context.getTypeSize(Info.ElementType); unsigned MinElts = Info.EC.getKnownMinValue();
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits