[clang] [Clang] [Sema] Reject non-power-of-2 `_BitInt` matrix element types (PR #117487)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 25 01:49:57 PST 2024
================
@@ -2455,6 +2456,10 @@ QualType Sema::BuildMatrixType(QualType ElementTy, Expr *NumRows, Expr *NumCols,
return QualType();
}
+ if (const auto *BIT = ElementTy->getAs<BitIntType>();
+ BIT && CheckBitIntElementType(*this, AttrLoc, BIT, true))
----------------
Fznamznon wrote:
```suggestion
BIT && CheckBitIntElementType(*this, AttrLoc, BIT, /*ForMatrixType=*/true))
```
https://github.com/llvm/llvm-project/pull/117487
More information about the cfe-commits
mailing list