================
@@ -1596,12 +1596,14 @@ QualType Sema::BuildQualifiedType(QualType T,
SourceLocation Loc,
QualType ProblemTy;
if (T->isAnyPointerType() || T->isReferenceType() ||
- T->isMemberPointerType()) {
+ T->isMemberPointerType() || T->isArrayType()) {
QualType EltTy;
if (T->isObjCObjectPointerType())
EltTy = T;
else if (const MemberPointerType *PTy = T->getAs<MemberPointerType>())
EltTy = PTy->getPointeeType();
+ else if (T->isArrayType())
+ EltTy = BuildQualifiedType(Context.getBaseElementType(T), Loc, Qs);
----------------
a-tarasyuk wrote:
@efriedma-quic Whoops :). I had considered removing recursion but was not
certain that was the main point. I've removed recursion. Could you check the
latest changes? thanks
https://github.com/llvm/llvm-project/pull/120896
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits