================ @@ -404,7 +404,7 @@ AST_MATCHER(CXXConstructExpr, isSafeSpanTwoParamConstruct) { if (Arg0Ty->isConstantArrayType()) { const APSInt ConstArrSize = - APSInt(cast<ConstantArrayType>(Arg0Ty)->getSize()); + APSInt(cast<ConstantArrayType>(Arg0Ty.getCanonicalType())->getSize()); ---------------- ziqingluo-90 wrote:
Have changed to use `ASTContext::getAsConstantArrayType()` https://github.com/llvm/llvm-project/pull/102953 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits