diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 3d44f1c33cc80..d5611f8f953f6 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -9594,8 +9594,6 @@ bool ASTContext::areCompatibleRVVTypes(QualType FirstType, auto IsValidCast = [this](QualType FirstType, QualType SecondType) { if (const auto *BT = FirstType->getAs()) { if (const auto *VT = SecondType->getAs()) { - // Predicates have the same representation as uint8 so we also have to - // check the kind to make these types incompatible. if (VT->getVectorKind() == VectorType::RVVFixedLengthDataVector) return FirstType->isRVVVLSBuiltinType() && VT->getElementType().getCanonicalType() ==