================
@@ -8306,6 +8316,14 @@ static void HandleExtVectorTypeAttr(QualType &CurType, 
const ParsedAttr &Attr,
   QualType T = S.BuildExtVectorType(CurType, SizeExpr, Attr.getLoc());
   if (!T.isNull())
     CurType = T;
+
+  std::optional<llvm::APSInt> VecSize =
+      SizeExpr->getIntegerConstantExpr(S.Context);
+  if (VecSize && VecSize->isNegative()) {
----------------
AaronBallman wrote:

Similar, I think this should live in `BuildExtVectorType()`.

https://github.com/llvm/llvm-project/pull/166055
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to