[clang] [Clang] Fix crash on comparisons of `_BitInt` vectors wider than 128 bits (PR #232797)

Akash Manna via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 16 11:54:56 PDT 2026


================
@@ -13633,6 +13633,14 @@ QualType Sema::CheckCompareOperands(ExprResult &LHS, ExprResult &RHS,
 
 QualType Sema::GetSignedVectorType(QualType V) {
   const VectorType *VTy = V->castAs<VectorType>();
+  if (const auto *BIT = VTy->getElementType()->getAs<BitIntType>()) {
----------------
akash-manna-sky wrote:

Yes, that also makes sense to me. 

https://github.com/llvm/llvm-project/pull/232797


More information about the cfe-commits mailing list